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>
#pragma GCC optimize("Ofast,unroll-loops,no-stack-protector")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const int N = 1 << 20, mod = 7 * 17 * (1 << 23) + 1, g = 3;
int rev[N], w[N], inv_n;
inline int Pow(int a, int p) {
  int ret = 1;
  while (p) {
    if (p & 1) ret = (long long)ret * a % mod;
    a = (long long)a * a % mod;
    p >>= 1;
  }
  return ret;
}
void prepare(int &n) {
  int sz = 31 - __builtin_clz(n);
  sz = abs(sz);
  int r = Pow(g, (mod - 1) / n);
  inv_n = Pow(n, mod - 2);
  w[0] = w[n] = 1;
  for (int i = 1; i < n; ++i) w[i] = (long long)w[i - 1] * r % mod;
  for (int i = 1; i < n; ++i)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << (sz - 1));
}
void ntt(int *a, int n) {
  for (int i = 1; i < n - 1; ++i)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int m = 2; m <= n; m <<= 1) {
    for (int i = 0; i < n; i += m) {
      for (int j = 0, k = n, z = n / m; j < (m >> 1); ++j, k -= z) {
        int &u = a[i + j], &v = a[i + j + (m >> 1)];
        int t = (long long)v * w[k] % mod;
        v = u - t < 0 ? u - t + mod : u - t;
        u = u + t >= mod ? u + t - mod : u + t;
      }
    }
  }
  for (int i = 0; i < n; ++i) a[i] = (long long)a[i] * inv_n % mod;
}
int a[N], n, k, d[10], x;
int main(int argc, char const *argv[]) {
  scanf("%d %d", &n, &k);
  while (k--) {
    scanf("%d", &x);
    d[x] = 1;
  }
  int t = 9 * n / 2, sz = 1;
  while (sz < t) sz <<= 1;
  prepare(sz);
  for (int i = 0; i < sz; ++i) {
    a[i] = (long long)a[i] * w[i] % mod;
    a[i] += d[0];
    a[i] = (long long)a[i] * w[i] % mod;
    a[i] += d[1];
    a[i] = (long long)a[i] * w[i] % mod;
    a[i] += d[2];
    a[i] = (long long)a[i] * w[i] % mod;
    a[i] += d[3];
    a[i] = (long long)a[i] * w[i] % mod;
    a[i] += d[4];
    a[i] = (long long)a[i] * w[i] % mod;
    a[i] += d[5];
    a[i] = (long long)a[i] * w[i] % mod;
    a[i] += d[6];
    a[i] = (long long)a[i] * w[i] % mod;
    a[i] += d[7];
    a[i] = (long long)a[i] * w[i] % mod;
    a[i] += d[8];
    a[i] = (long long)a[i] * w[i] % mod;
    a[i] += d[9];
  }
  x = n >> 1;
  for (int i = 0; i < sz; ++i) a[i] = Pow(a[i], x);
  ntt(a, sz);
  int ans = 0;
  for (int i = 0; i < sz; ++i) {
    ans += (long long)a[i] * a[i] % mod;
    if (ans >= mod) ans -= mod;
  }
  printf("%d\n", ans);
}