Problem: All bus tickets in Berland have their numbers. A number consists of n digits (n is even). Only k decimal digits d_1, d_2, ..., d_k can be used to form ticket numbers. If 0 is among these digits, then numbers may have leading zeroes. For example, if n = 4 and only digits 0 and 4 can be used, then 0000, 4004, 4440 are valid ticket numbers, and 0002, 00, 44443 are not.

A ticket is lucky if the sum of first n / 2 digits is equal to the sum of remaining n / 2 digits. 

Calculate the number of different lucky tickets in Berland. Since the answer may be big, print it modulo 998244353.

Input

The first line contains two integers n and k (2 ≤ n ≤ 2 ⋅ 10^5, 1 ≤ k ≤ 10) — the number of digits in each ticket number, and the number of different decimal digits that may be used. n is even.

The second line contains a sequence of pairwise distinct integers d_1, d_2, ..., d_k (0 ≤ d_i ≤ 9) — the digits that may be used in ticket numbers. The digits are given in arbitrary order.

Output

Print the number of lucky ticket numbers, taken modulo 998244353.

Examples

Input

4 2
1 8


Output

6


Input

20 1
6


Output

1


Input

10 5
6 1 4 0 3


Output

569725


Input

1000 7
5 4 0 1 8 3 2


Output

460571165

Note

In the first example there are 6 lucky ticket numbers: 1111, 1818, 1881, 8118, 8181 and 8888.

There is only one ticket number in the second example, it consists of 20 digits 6. This ticket number is lucky, so the answer is 1.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 3e6 + 5;
int mod = 998244353;
const double PI = acos(-1);
int n, k;
int d[14];
const int MOD = 998244353;
long long w[2][3000005];
inline long long qp(long long a, long long b) {
  long long ans = 1;
  while (b) {
    if (b & 1) ans = ans * a % MOD;
    a = a * a % MOD;
    b >>= 1;
  }
  return ans;
}
int K;
inline void fftinit(int n) {
  for (K = 1; K < n; K <<= 1)
    ;
  w[0][0] = w[0][K] = 1;
  long long g = qp(3, (MOD - 1) / K);
  for (int i = 1; i < K; i++) w[0][i] = w[0][i - 1] * g % MOD;
  for (int i = 0; i <= K; i++) w[1][i] = w[0][K - i];
}
inline void fft(int* x, int v) {
  for (int i = 0; i < K; i++) x[i] = (x[i] % MOD + MOD) % MOD;
  for (int i = 0, j = 0; i < K; i++) {
    if (i > j) swap(x[i], x[j]);
    for (int l = K >> 1; (j ^= l) < l; l >>= 1)
      ;
  }
  for (int i = 2; i <= K; i <<= 1)
    for (int l = 0; l < i >> 1; l++) {
      register int W = w[v][K / i * l], *p = x + l + (i >> 1), *q = x + l, t;
      for (register int j = 0; j < K; j += i) {
        p[j] = (q[j] - (t = (long long)p[j] * W % MOD) < 0) ? (q[j] - t + MOD)
                                                            : (q[j] - t);
        q[j] = (q[j] + t - MOD >= 0) ? (q[j] + t - MOD) : (q[j] + t);
      }
    }
  if (!v) return;
  long long rv = qp(K, MOD - 2);
  for (int i = 0; i < K; i++) x[i] = x[i] * rv % MOD;
}
vector<int> operator*(vector<int> a, vector<int> b) {
  if (a.size() && b.size())
    ;
  else
    return vector<int>();
  static int aa[3000005], bb[3000005];
  fftinit(a.size() + b.size());
  for (int i = 0; i < K; ++i) aa[i] = bb[i] = 0;
  for (int i = 0; i < int(a.size()); ++i) aa[i] = a[i];
  for (int i = 0; i < int(b.size()); ++i) bb[i] = b[i];
  fft(aa, 0);
  fft(bb, 0);
  for (int i = 0; i < K; ++i) aa[i] = (long long)aa[i] * bb[i] % MOD;
  vector<int> v;
  fft(aa, 1);
  for (int i = 0; i < int(a.size()) + int(b.size()) - 1; ++i)
    v.push_back(aa[i]);
  return v;
}
vector<int> operator+(vector<int> a, vector<int> b) {
  vector<int> s(max(a.size(), b.size()));
  for (int i = 0; i < int(a.size()); ++i) (s[i] += a[i]) %= MOD;
  for (int i = 0; i < int(b.size()); ++i) (s[i] += b[i]) %= MOD;
  return s;
}
vector<int> solve(int sz) {
  vector<int> res((sz * 9) + 1, 0);
  if (sz == 0) return res;
  if (sz == 1) {
    for (int i = 1; i <= k; i++) res[d[i]] = 1;
    return res;
  }
  int h1, h2;
  h1 = sz / 2;
  h2 = sz - h1;
  vector<int> v1, v2;
  v1 = solve(h1);
  v2 = solve(h2);
  res = v1 * v2;
  return res;
}
long long ans;
vector<int> poly;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n >> k;
  for (int i = 1; i <= k; i++) cin >> d[i];
  n /= 2;
  poly = solve(n);
  for (int i = 0; i < poly.size(); i++) {
    long long x = (1LL * poly[i] * poly[i]) % mod;
    ans = (ans + x) % mod;
  }
  cout << ans << endl;
  return 0;
}