Problem: You are given a positive integer k and an array a_1, a_2, …, a_n of non-negative distinct integers not smaller than k and not greater than 2^c-1.

In each of the next k seconds, one element is chosen randomly equiprobably out of all n elements and decreased by 1.

For each integer x, 0 ≤ x ≤ 2^c - 1, you need to find the probability that in the end the bitwise XOR of all elements of the array is equal to x. 

Each of these values can be represented as an irreducible fraction p/q, and you need to find the value of p ⋅ q^{-1} modulo 998 244 353. 

Input

The first line of input contains three integers n, k, c (1 ≤ n ≤ (2^c - k), 1 ≤ k ≤ 16, 1 ≤ c ≤ 16).

The second line contains n distinct integers a_1, a_2, …, a_n (k ≤ a_i ≤ 2^c-1).

Output

Print 2^c integers: the probability that the bitwise XOR is equal to x in the end for x in \{0, 1, …, 2^c-1\} modulo 998 244 353.

Example

Input


4 1 3
1 2 3 4


Output


0 0 0 748683265 0 499122177 0 748683265 

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
#pragma GCC optimize(2)
using namespace std;
const int mod = 998244353;
const int inv2 = (mod + 1) >> 1;
int qpow(int a, int b) {
  int ret = 1;
  while (b) {
    if (b & 1) ret = 1ll * ret * a % mod;
    a = 1ll * a * a % mod;
    b >>= 1;
  }
  return ret;
}
void fwt(vector<int> &a, int f) {
  int len = int(a.size());
  for (int i = 1; i < len; i <<= 1)
    for (int p = i << 1, j = 0; j < len; j += p)
      for (int k = 0; k < i; k++) {
        int x = a[j + k], y = a[j + k + i];
        if (f == 1) {
          a[j + k] = (x + y) % mod;
          a[j + k + i] = (x - y + mod) % mod;
        } else {
          a[j + k] = 1ll * (x + y) * inv2 % mod;
          a[j + k + i] = 1ll * (x - y + mod) * inv2 % mod;
        }
      }
}
int n, k, c, C[20][20], tim = 0;
bool fl;
vector<vector<int>> mul(vector<vector<int>> a, vector<vector<int>> b) {
  int be = clock();
  for (int i = 0; i <= k; i++) {
    fwt(a[i], 1);
    fwt(b[i], 1);
  }
  int len = int(a[0].size());
  vector<vector<int>> ret(k + 1, vector<int>(len));
  for (int i = 0; i <= k; i++)
    for (int j = 0; i + j <= k; j++)
      for (int t = 0; t < len; t++) {
        ret[i + j][t] =
            (ret[i + j][t] + 1ll * a[i][t] * b[j][t] % mod * C[i + j][i]) % mod;
      }
  for (int i = 0; i <= k; i++) fwt(ret[i], -1);
  tim += clock() - be;
  return ret;
}
vector<vector<int>> solve_mid(vector<int> vec, int p) {
  vector<unordered_map<int, int>> dp(k + 1);
  dp[0][0] = 1;
  for (auto x : vec) {
    vector<unordered_map<int, int>> new_dp(k + 1);
    for (int i = 0; i <= k; i++)
      for (auto t : dp[i])
        for (int j = 0; i + j <= k; j++)
          new_dp[i + j][t.first ^ (x - j)] = (new_dp[i + j][t.first ^ (x - j)] +
                                              1ll * t.second * C[i + j][i]) %
                                             mod;
    dp = new_dp;
  }
  vector<vector<int>> ret(k + 1, vector<int>(1 << p));
  for (int i = 0; i <= k; i++)
    for (auto t : dp[i]) ret[i][t.first] = t.second;
  return ret;
}
vector<vector<int>> solve(vector<int> vec, int p) {
  if (vec.empty()) {
    vector<vector<int>> ret(k + 1, vector<int>(1 << p));
    ret[0][0] = 1;
    return ret;
  }
  vector<int> vec_ls, vec_rs, vec_mid;
  for (auto x : vec) {
    if (x < (1 << (p - 1)))
      vec_ls.push_back(x);
    else if (x >= (1 << (p - 1)) + k)
      vec_rs.push_back(x - (1 << (p - 1)));
    else
      vec_mid.push_back(x);
  }
  auto dp_ls = solve(vec_ls, p - 1), dp_rs = solve(vec_rs, p - 1);
  for (auto &t : dp_ls) t.resize(1 << p);
  for (auto &t : dp_rs) {
    t.resize(1 << p);
    if (int(vec_rs.size()) & 1)
      for (int i = 0; i < (1 << (p - 1)); i++)
        t[i + (1 << (p - 1))] = t[i], t[i] = 0;
  }
  auto dp_mid = solve_mid(vec_mid, p);
  return mul(dp_ls, mul(dp_mid, dp_rs));
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> k >> c;
  for (int i = 0; i <= k; i++) {
    C[i][0] = 1;
    for (int j = 1; j <= i; j++)
      C[i][j] = (C[i - 1][j] + C[i - 1][j - 1]) % mod;
  }
  vector<int> vec;
  for (int i = 1, x; i <= n; i++) cin >> x, vec.push_back(x);
  auto ans = solve(vec, c);
  int inv = qpow(qpow(n, k), mod - 2);
  for (int i = 0; i < (1 << c); i++) cout << 1ll * ans[k][i] * inv % mod << ' ';
  return 0;
}