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>
using namespace std;
int n, m;
long long P[55], B[55], T[55], Comb[55][55];
void Put(long long a) {
  int i;
  for (i = m; i >= 0; i--) {
    if ((a >> i) & 1) {
      if (!P[i]) {
        P[i] = a;
        return;
      }
      a ^= P[i];
    }
  }
}
int C[55], Mod = 998244353;
void DFS(int pv, long long x) {
  if (pv == -1) {
    C[__builtin_popcountll(x)]++;
    return;
  }
  DFS(pv - 1, x);
  DFS(pv - 1, x ^ T[pv]);
}
int main() {
  int i, j, k, c1 = 0, c2 = 0;
  scanf("%d%d", &n, &m);
  long long a;
  for (i = 0; i < n; i++) {
    scanf("%lld", &a);
    Put(a);
  }
  for (i = 0; i < m; i++) {
    if (!P[i]) continue;
    for (j = 0; j < i; j++) {
      if (P[j] && ((P[i] >> j) & 1)) P[i] ^= P[j];
    }
    T[c1++] = P[i];
  }
  long long off = 1, Inv2 = Mod / 2 + 1;
  for (i = 0; i < n - c1; i++) off = off * 2 % Mod;
  if (c1 <= 27) {
    DFS(c1 - 1, 0);
    for (i = 0; i <= m; i++) printf("%lld ", C[i] * off % Mod);
    return 0;
  }
  for (i = 0; i < m; i++) {
    if (P[i]) continue;
    long long t = (1ll << i);
    for (j = 0; j < m; j++) {
      if (P[j] & (1ll << i)) t |= (1ll << j);
    }
    T[c2++] = t;
  }
  off = 1;
  for (i = 0; i < n; i++) off = off * 2 % Mod;
  for (i = 0; i < m; i++) off = off * Inv2 % Mod;
  DFS(c2 - 1, 0);
  for (i = 0; i <= m; i++) {
    Comb[i][0] = 1;
    for (j = 1; j <= i; j++)
      Comb[i][j] = (Comb[i - 1][j - 1] + Comb[i - 1][j]) % Mod;
  }
  for (i = 0; i <= m; i++) {
    long long rr = 0;
    for (j = 0; j <= m; j++) {
      long long s = 0;
      for (k = 0; k <= min(i, j); k++) {
        int t = Comb[j][k] * Comb[m - j][i - k] % Mod;
        if (k & 1)
          s -= t;
        else
          s += t;
      }
      s = s % Mod + Mod;
      rr = (rr + C[j] * s) % Mod;
    }
    printf("%lld ", rr * off % Mod);
  }
}