Jono likes arrays. Jono is quite interested in one particular type of operation on an array that he calls Sum Mod Pair of A, or SMPA for short.
Given an array of integers A (indexed from 0 to N−1) and an integer M of a power of 2, the operation SMPA(A,M) returns an array of size N2 (indexed from 0 to N2−1) where its ith element is (A_x+A_y)modM with x=⌊i/N⌋ and y=imodN.
For example, let A_0..2=2,4,5 and M=8. Then,
\begin{align\*} \text{SMPA}(A, M) = \\,& \\{ (A\_0 + A\_0) \bmod M,(A\_0 + A\_1) \bmod M,(A\_0 + A\_2) \bmod M, \\\ & (A\_1 + A\_0) \bmod M,(A\_1 + A\_1) \bmod M,(A\_1 + A\_2) \bmod M, \\\ & (A\_2 + A\_0) \bmod M,(A\_2 + A\_1) \bmod M,(A\_2 + A\_2) \bmod M \\} \\\ = \\,& \\{ (2 + 2) \bmod 8,(2 + 4) \bmod 8,(2 + 5) \bmod 8, \\\ & (4 + 2) \bmod 8,(4 + 4) \bmod 8,(4 + 5) \bmod 8, \\\ & (5 + 2) \bmod 8,(5 + 4) \bmod 8,(5 + 5) \bmod 8 \\} \\\ = \\,& \\{4, 6, 7, 6, 0, 1, 7, 1, 2\\} \end{align\*}
Jono is not satisfied with only one SMPA operation. He then introduces the following SMPAK for a positive integer K.
SMPAK(A,M)={SMPA(A,M), SMPAK−1(SMPA(A,M),M),if K=1otherwise
For example, let A_0..1=1,2 and M=8.
Jono would like to experiment with a large K but, as you might already notice, the array size grows exponentially. Therefore, he cannot simply print out the resulting array. Instead, he will be satisfied if he knows the sum of all elements in the resulting array. As this number can be very large as well, he decides to modulo the output by 998,244,353.
Your task in this problem is to compute the sum of all elements in the array produced by SMPAK(A,M). Output the non-negative remainder after being divided by 998,244,353.
Input begins with a line containing three integers N M K (1≤N≤100,000; M∈20,21,…,218; 1≤K≤109) representing the size of array A, and the parameter M and K for the SMPAK(A,M) operation, respectively. The next line contains N integers A_i (0≤A_i<M) representing the array A.
Output contains an integer in a line representing the non-negative remainder of the sum of all elements in SMPAK(A,M) after being divided by 998,244,353.