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;
using LL = long long;
namespace _buff {
const size_t BUFF = 1 << 19;
char ibuf[BUFF], *ib = ibuf, *ie = ibuf;
char getc() {
  if (ib == ie) {
    ib = ibuf;
    ie = ibuf + fread(ibuf, 1, BUFF, stdin);
  }
  return ib == ie ? -1 : *ib++;
}
}  // namespace _buff
LL read() {
  using namespace _buff;
  LL ret = 0;
  bool pos = true;
  char c = getc();
  for (; (c < '0' || c > '9') && c != '-'; c = getc()) {
    assert(~c);
  }
  if (c == '-') {
    pos = false;
    c = getc();
  }
  for (; c >= '0' && c <= '9'; c = getc()) {
    ret = (ret << 3) + (ret << 1) + (c ^ 48);
  }
  return pos ? ret : -ret;
}
const int MOD = 998244353;
using uint = unsigned;
struct Z {
  uint v;
  Z(uint v = 0) : v(v) {}
  Z &operator+=(const Z &z) {
    v += z.v;
    if (v >= MOD) v -= MOD;
    return *this;
  }
  Z &operator-=(const Z &z) {
    if (v < z.v) v += MOD;
    v -= z.v;
    return *this;
  }
  Z &operator*=(const Z &z) {
    v = static_cast<uint64_t>(v) * z.v % MOD;
    return *this;
  }
};
ostream &operator<<(ostream &os, const Z &z) { return os << z.v; }
Z operator+(const Z &x, const Z &y) {
  return Z(x.v + y.v >= MOD ? x.v + y.v - MOD : x.v + y.v);
}
Z operator-(const Z &x, const Z &y) {
  return Z(x.v < y.v ? x.v + MOD - y.v : x.v - y.v);
}
Z operator*(const Z &x, const Z &y) {
  return Z(static_cast<uint64_t>(x.v) * y.v % MOD);
}
Z qpow(Z base, uint e) {
  Z ret(1);
  for (; e; e >>= 1) {
    if (e & 1) {
      ret *= base;
    }
    base *= base;
  }
  return ret;
}
const size_t L = 60;
using ull = uint64_t;
uint m;
struct LB {
  ull b[L];
  LB() { memset(b, 0, sizeof b); }
  void add(ull x) {
    for (uint i = m; i--;) {
      if (x >> i & 1) {
        if (b[i]) {
          x ^= b[i];
        } else {
          b[i] = x;
          for (uint j = i; j--;) {
            if (b[i] >> j & 1) b[i] ^= b[j];
          }
          for (uint j = i + 1; j < m; ++j) {
            if (b[j] >> i & 1) b[j] ^= b[i];
          }
          return;
        }
      }
    }
  }
};
ull b[L];
uint cnt;
int f[L];
void get_b(const LB &lb) {
  cnt = 0;
  for (uint i = 0; i < m; ++i) {
    if (lb.b[i]) {
      b[cnt++] = lb.b[i];
    }
  }
}
void dfs(ull cur = 0, uint i = 0) {
  if (i == cnt) {
    ++f[__builtin_popcountll(cur)];
    return;
  }
  dfs(cur, i + 1);
  dfs(cur ^ b[i], i + 1);
}
Z comb[L][L];
void prep_comb() {
  for (uint i = 0; i < L; ++i) {
    comb[i][0] = 1;
    for (uint j = 1; j <= i; ++j) {
      comb[i][j] = comb[i - 1][j] + comb[i - 1][j - 1];
    }
  }
}
int main() {
  int n = read();
  m = read();
  LB b;
  for (int i = 0; i < n; ++i) {
    b.add(read());
  }
  get_b(b);
  assert(cnt <= n);
  Z mul = qpow(2, n - cnt);
  if ((cnt << 1) <= m) {
    dfs();
    for (uint i = 0; i <= m; ++i) {
      cout << f[i] * mul << ' ';
    }
  } else {
    cnt = 0;
    for (uint i = 0; i < m; ++i) {
      ull cur = 1ull << i;
      for (uint j = 0; j < m; ++j) {
        cur ^= (b.b[j] >> i & 1) << j;
      }
      if (cur) {
        ::b[cnt++] = cur;
      }
    }
    dfs();
    mul *= qpow(2, MOD - 1 - cnt);
    prep_comb();
    for (uint i = 0; i <= m; ++i) {
      Z ans = 0;
      for (uint j = 0; j <= m; ++j) {
        for (uint k = 0; k <= i && k <= j; ++k) {
          Z cur = f[j] * comb[j][k] * comb[m - j][i - k];
          if (k & 1)
            ans -= cur;
          else
            ans += cur;
        }
      }
      cout << ans * mul << ' ';
    }
  }
  return 0;
}