You have an array of n k-bit numbers a_1,a_2,…,a_n.
You need to calculate ∑_i=1n∑_j=i+1n(a_i⊕a_j)x.
Operation a⊕b is bitwise exclusive OR of two numbers a and b.
Since the answer can be very large, output it modulo 998,244,353.
The first line of the input contains three integers n,k,x (1≤n,k,n⋅k≤300,000, 1≤x≤3) --- length of an array, number of bits in each number and the power of exclusive OR operations results in the sum.
Next n lines contain array elements.
The i-th of them contains string s_0,s_1,…,s_k−1, consisting of '0' and '1'.
Then a_i= ∑_i=0k−1s_i⋅2i.
Print one number --- the remainder of division of the sum of x-th powers of exclusive OR results of all pairs of numbers in the array by 998,244,353.
In the first sample array contains integers \[5,4,4], and the answer is (5⊕4)+(5⊕4)+(4⊕4)=1+1+0=2.
In the second sample array contains integers \[61,38], and the answer is (61⊕38)3=273=19683.