Power of XOR

아직 제출이 없습니다시간 제한6초메모리 제한512 MB

문제

Bobo has a set of nn integers a_1,a_2,,a_n\\{a\_1, a\_2, \dots, a\_n\\}. He randomly picks a subset x_1,x_2,,x_m\\{x\_1, x\_2, \dots, x\_m\\} (each subset has equal probability to be picked), and would like to know the expectation of \[popcount(x_1x_2x_m)]k\[\mathrm{popcount}(x\_1 \oplus x\_2 \oplus \dots \oplus x\_m)]^k.

Note that popcount(x)\mathrm{popcount}(x) is the number of ones in the binary notation of xx, and \oplus denotes bitwise exclusive-or.

입력

The first line contains 22 integers n,kn, k (1n44,1k1091 \leq n \leq 44, 1 \leq k \leq 10^9).

The second line contains nn integers a_1,a_2,,a_na\_1, a\_2, \dots, a\_n (0a_i<2440 \leq a\_i < 2^{44}).

출력

If the expectation is EE, print a single integer denotes E2nmod(109+7)E \cdot 2^n \bmod (10^9+7).