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;
const int P = 998244353;
int pw2(int y) {
  if (y < 0) y += P - 1;
  int x = 2;
  int s = 1;
  for (; y; y >>= 1, x = (long long)x * x % P)
    if (y & 1) s = (long long)s * x % P;
  return s;
}
int k, c[100];
long long a[100];
void calc(int t, long long x) {
  if (t > k) {
    ++c[__builtin_popcountll(x)];
    return;
  }
  calc(t + 1, x), calc(t + 1, x ^ a[t]);
}
int m, C[100][100];
long long bs[100];
bool ins(long long x) {
  for (int i = m - 1, iend = 0; i >= iend; --i)
    if (x >> i & 1) {
      if (bs[i]) {
        if (!(x ^= bs[i])) return false;
      } else {
        for (int j = i - 1, jend = 0; j >= jend; --j)
          if (bs[j] && (x & (1LL << j))) x ^= bs[j];
        bs[i] = x;
        for (int j = i + 1, jend = m - 1; j <= jend; ++j)
          if (bs[j] && (bs[j] & (1LL << i))) bs[j] ^= bs[i];
        return true;
      }
    }
  return false;
}
int main() {
  int n, b = 0;
  scanf("%d%d", &n, &m);
  for (int i = 1, iend = n; i <= iend; ++i) {
    long long x;
    scanf("%lld", &x);
    b += ins(x);
  }
  if (b <= m / 2) {
    for (int i = 0, iend = m - 1; i <= iend; ++i)
      if (bs[i]) a[++k] = bs[i];
    calc(1, 0);
    for (int i = 0, iend = m; i <= iend; ++i)
      printf("%d ", ((long long)c[i] * pw2(n - k)) % P);
  } else {
    for (int i = 0, iend = m - 1; i <= iend; ++i)
      if (!bs[i]) {
        int t = 0;
        ++k;
        for (int j = 0, jend = m - 1; j <= jend; ++j)
          if (bs[j]) {
            a[k] |= (bs[j] >> i & 1) << t;
            ++t;
          }
        a[k] |= 1LL << (b + k);
      }
    calc(1, 0);
    for (int i = 0, iend = m; i <= iend; ++i) {
      C[i][0] = 1;
      for (int j = 1, jend = i; j <= jend; ++j)
        C[i][j] = (C[i - 1][j] + C[i - 1][j - 1]) % P;
    }
    for (int i = 0, iend = m; i <= iend; ++i) {
      int tot = 0;
      for (int j = 0, jend = m; j <= jend; ++j) {
        int s = 0;
        for (int k = 0, kend = i; k <= kend; ++k) {
          int x = (long long)C[j][k] * C[m - j][i - k] % P;
          if (k & 1)
            s = (s + P - x) % P;
          else
            s = (s + x) % P;
        }
        tot = (tot + (long long)s * c[j]) % P;
      }
      printf("%d ", (long long)tot * pw2(n - m) % P);
    }
  }
  return 0;
}