Given two integers $$$n$$$, $$$k$$$, and an array $$$a$$$ of $$$n$$$ elements.
Define $$$f(x)$$$ as the number of pairs $$$(i, j)$$$ $$$(1 \le i, j \le n)$$$ such that $$$a_i + x$$$ is a submask of $$$a_j + x$$$.
Find the sum of $$$f(0), f(1), \ldots, f(2^k - 1)$$$ (modulo $$$998\,244\,353$$$, obviously).
The first line contains two integers $$$n$$$ and $$$k$$$ $$$(1 \le n \le 2 \times 10^4, 1 \le k \le 60)$$$.
The second line contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n$$$ $$$(0 \le a_i \le 2 ^ k - 1)$$$.
Print one integer — the answer to the problem modulo $$$998\,244\,353$$$.
2 22 0
10
10 516 31 16 18 7 17 31 26 7 21
840
2 50383198634384164 901251460473164
400397424
$$$x$$$ is a submask of $$$y$$$ if in binary notation the positions where $$$x$$$ has a 1 (set bit), $$$y$$$ also has a 1(set bit).
For example, $$$5$$$ is a submask of $$$13$$$ ($$$5 = 0101_2, 13 = 1101_2$$$), $$$9$$$ is not a submask of $$$10$$$ ($$$9 = 1001_2, 10 = 1010_2$$$).
| Name |
|---|


