Problem: This is the hard version of the problem. The only difference between easy and hard versions is the constraint of m. You can make hacks only if both versions are solved.

Chiori loves dolls and now she is going to decorate her bedroom!

<image>

As a doll collector, Chiori has got n dolls. The i-th doll has a non-negative integer value a_i (a_i < 2^m, m is given). Chiori wants to pick some (maybe zero) dolls for the decoration, so there are 2^n different picking ways.

Let x be the bitwise-xor-sum of values of dolls Chiori picks (in case Chiori picks no dolls x = 0). The value of this picking way is equal to the number of 1-bits in the binary representation of x. More formally, it is also equal to the number of indices 0 ≤ i < m, such that \left⌊ (x)/(2^i) \right⌋ is odd.

Tell her the number of picking ways with value i for each integer i from 0 to m. Due to the answers can be very huge, print them by modulo 998 244 353.

Input

The first line contains two integers n and m (1 ≤ n ≤ 2 ⋅ 10^5, 0 ≤ m ≤ 53) — the number of dolls and the maximum value of the picking way.

The second line contains n integers a_1, a_2, …, a_n (0 ≤ a_i < 2^m) — the values of dolls.

Output

Print m+1 integers p_0, p_1, …, p_m — p_i is equal to the number of picking ways with value i by modulo 998 244 353.

Examples

Input


4 4
3 5 8 14


Output


2 2 6 6 0 

Input


6 7
11 45 14 9 19 81


Output


1 2 11 20 15 10 5 0 

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
long long n, m, a[1100005], cntA, A[1100005], C[105][105], G[105][105],
    ans[105], S[1100005], E[1100005], cnt[1100005];
long long read() {
  char c = getchar();
  long long ans = 0;
  while (c < '0' || c > '9') c = getchar();
  while (c >= '0' && c <= '9') ans = ans * 10 + c - '0', c = getchar();
  return ans;
}
void Write(long long x) {
  if (x < 10)
    putchar(x ^ 48);
  else
    Write(x / 10), putchar((x % 10) ^ 48);
  return;
}
long long add(long long x, long long y) {
  return (x += y) >= 998244353 ? x - 998244353 : x;
}
long long power(long long x, long long y) {
  long long ans = 1, now = x;
  if (y < 0) y += 998244353 - 1;
  for (register long long i = y; i; i >>= 1, now = now * now % 998244353)
    if (i & 1) ans = ans * now % 998244353;
  return ans;
}
void Insert(long long x) {
  for (register long long i = m - 1; i >= 0; i--) {
    if (!(x >> i & 1)) continue;
    if (!A[i]) {
      A[i] = x, ++cntA;
      for (register long long j = 0; j < i; j++)
        if (A[i] >> j & 1) A[i] ^= A[j];
      for (register long long j = i + 1; j < m; j++)
        if (A[j] >> i & 1) A[j] ^= A[i];
      break;
    } else
      x ^= A[i];
  }
  return;
}
void DFS(int x, long long now) {
  if (x > *S)
    ++ans[cnt[now & 1048575] + cnt[now >> 20 & 1048575] + cnt[now >> 40]];
  else
    DFS(x + 1, now), DFS(x + 1, now ^ S[x]);
  return;
}
int main() {
  n = read(), m = read();
  for (register long long i = 1; i <= n; i++) Insert(a[i] = read());
  for (register int i = 0; i < (1 << 20); i++) cnt[i] = cnt[i >> 1] + (i & 1);
  for (register long long i = 0; i < 100; i++) {
    C[i][0] = C[i][i] = 1;
    for (register long long j = 1; j < 100; j++)
      C[i][j] = add(C[i - 1][j], C[i - 1][j - 1]);
  }
  if (cntA <= m / 2) {
    long long mul = power(2, n - cntA);
    for (register long long i = 0; i < m; i++)
      if (A[i]) S[++*S] = A[i];
    DFS(1, 0);
    for (register long long i = 0; i <= m; i++)
      Write(ans[i] * mul % 998244353), putchar(' ');
    return 0;
  }
  for (register long long i = 0; i < m; i++) {
    if (A[i]) continue;
    long long now = 1ll << i;
    for (register int j = i + 1; j < m; j++)
      if (A[j] >> i & 1) now |= (1ll << j);
    S[++*S] = now;
  }
  DFS(1, 0);
  for (register long long i = 0; i <= m; i++)
    for (register long long j = 0; j <= m; j++)
      for (register long long k = 0; k <= j && k <= i; k++)
        G[i][j] = (G[i][j] + C[j][k] * C[m - j][i - k] % 998244353 *
                                 ((k & 1) ? 998244353 - 1 : 1)) %
                  998244353;
  for (register long long i = 0; i <= m; i++, putchar(' ')) {
    long long Ans = 0;
    for (register long long j = 0; j <= m; j++)
      Ans = (Ans + ans[j] * G[i][j]) % 998244353;
    Write(Ans * power(2, n - m) % 998244353);
  }
  return 0;
}