B. Submask Problem V7.0
time limit per test
3 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

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).

Input

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)$$$.

Output

Print one integer — the answer to the problem modulo $$$998\,244\,353$$$.

Examples
Input
2 2
2 0
Output
10
Input
10 5
16 31 16 18 7 17 31 26 7 21
Output
840
Input
2 50
383198634384164 901251460473164
Output
400397424
Note

$$$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$$$).