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>
namespace IO {
char gc() { return getchar(); }
template <typename Tp>
bool get1(Tp &x) {
  bool neg = 0;
  char c = gc();
  while (c != EOF && (c < '0' || c > '9') && c != '-') c = gc();
  if (c == '-') c = gc(), neg = 1;
  if (c == EOF) return false;
  x = 0;
  for (; c >= '0' && c <= '9'; c = gc()) x = x * 10 + c - '0';
  if (neg) x = -x;
  return true;
}
template <typename Tp>
void printendl(Tp x) {
  if (x < 0) putchar('-'), x = -x;
  static short a[40], sz;
  sz = 0;
  while (x > 0) a[sz++] = x % 10, x /= 10;
  if (sz == 0) putchar('0');
  for (int i = sz - 1; i >= 0; i--) putchar('0' + a[i]);
  puts("");
}
}  // namespace IO
using IO::get1;
using IO::printendl;
const int inf = 0x3f3f3f3f;
const long long Linf = 1ll << 61;
const int maxn = 100111;
const int mod = 998244353;
int qpow(int x, int y) {
  int ret = 1;
  while (y) {
    if (y & 1) ret = 1ll * ret * x % mod;
    x = 1ll * x * x % mod;
    y >>= 1;
  }
  return ret;
}
inline void add(int &x, int y) {
  x += y;
  if (x >= mod) x -= mod;
}
int n, m, tot, coef;
long long a[111], b[111];
int cnt[111], ans[111];
void dfs(int x, long long now) {
  if (x == tot) {
    cnt[__builtin_popcountll(now)]++;
    return;
  }
  dfs(x + 1, now);
  dfs(x + 1, now ^ a[x]);
}
int main() {
  get1(n) && get1(m);
  coef = 1;
  while (n--) {
    long long x;
    get1(x);
    for (int i = 0; i < tot; i++)
      if (a[i] & -a[i] & x) x ^= a[i];
    if (!x) {
      add(coef, coef);
      continue;
    }
    for (int i = 0; i < tot; i++)
      if (a[i] & x & -x) a[i] ^= x;
    a[tot++] = x;
  }
  if (tot <= m / 2) {
    dfs(0, 0);
    for (int i = 0; i <= m; i++) ans[i] = 1ll * cnt[i] * coef % mod;
  } else {
    static int seq[111], have[111], c[111][111], ntot;
    for (int i = 0; i <= m; i++) {
      c[i][0] = 1;
      for (int j = 1; j <= m; j++)
        c[i][j] = (c[i - 1][j] + c[i - 1][j - 1]) % mod;
    }
    for (int i = 0; i < tot; i++) have[__builtin_ctzll(a[i])] = 1;
    for (int i = 0; i < m; i++)
      if (!have[i]) {
        seq[ntot++] = i;
        if (coef & 1) coef += mod;
        coef >>= 1;
      }
    for (int i = 0; i < ntot; i++) {
      b[i] = 1ll << m - i;
      for (int j = 0; j < tot; j++)
        if ((a[j] >> seq[i]) & 1) b[i] |= 1ll << j;
    }
    tot = ntot;
    memcpy(a, b, sizeof(a));
    dfs(0, 0);
    for (int i = 0; i <= m; i++) {
      for (int j = 0; j <= m; j++) {
        int sum = 0;
        for (int k = 0; k <= j; k++) {
          int now = 1ll * c[j][k] * c[m - j][i - k] % mod;
          if (k % 2 == 0)
            add(sum, now);
          else
            add(sum, mod - now);
        }
        add(ans[i], 1ll * sum * cnt[j] % mod);
      }
      ans[i] = 1ll * ans[i] * coef % mod;
    }
  }
  for (int i = 0; i <= m; i++) printf("%d%c", ans[i], i == m ? '\n' : ' ');
  return 0;
}