Problem: Nezzar buys his favorite snack — n chocolate bars with lengths l_1,l_2,…,l_n. However, chocolate bars might be too long to store them properly! 

In order to solve this problem, Nezzar designs an interesting process to divide them into small pieces. Firstly, Nezzar puts all his chocolate bars into a black box. Then, he will perform the following operation repeatedly until the maximum length over all chocolate bars does not exceed k.

  * Nezzar picks a chocolate bar from the box with probability proportional to its length x. 
  * After step 1, Nezzar uniformly picks a real number r ∈ (0,x) and divides the chosen chocolate bar into two chocolate bars with lengths r and x-r. 
  * Lastly, he puts those two new chocolate bars into the black box. 



Nezzar now wonders, what is the expected number of operations he will perform to divide his chocolate bars into small pieces.

It can be shown that the answer can be represented as P/Q, where P and Q are coprime integers and Q not ≡ 0 (mod 998 244 353). Print the value of P⋅ Q^{-1} mod 998 244 353.

Input

The first line contains two integers n and k (1 ≤ n ≤ 50, 1 ≤ k ≤ 2000).

The second line contains n integers l_1, l_2, …, l_n (1 ≤ l_i, ∑_{i=1}^{n} l_i ≤ 2000).

Output

Print a single integer — the expected number of operations Nezzar will perform to divide his chocolate bars into small pieces modulo 998 244 353.

Examples

Input


1 1
2


Output


4


Input


1 1
1


Output


0


Input


1 5
1234


Output


15630811


Input


2 1
2 3


Output


476014684


Input


10 33
10 20 30 40 50 60 70 80 90 100


Output


675105648

Solution (in CPP):

Solution:
#include<bits/stdc++.h>
#define cs const
#define pb push_back
using namespace std;
cs int Mod = 998244353;
int add(int a, int b){ return a + b >= Mod ? a + b - Mod : a + b; }
int dec(int a, int b){ return a - b < 0 ? a - b + Mod : a - b; }
int mul(int a, int b){ return 1ll * a * b % Mod; }
void Add(int &a, int b){ a = add(a, b); }
void Dec(int &a, int b){ a = dec(a, b); }
void Mul(int &a, int b){ a = mul(a, b); }
int ksm(int a, int b){
	int ans = 1; for(; b; b >>= 1, Mul(a, a))
	if(b & 1) Mul(ans, a); return ans; 
}
cs int N = 55, M = 2e3 + 50; 
int n, K, L, l[N];
int fc[M], ifc[M], dp[2][N][M];
void fc_init(int n){
	fc[0] = ifc[0] = 1; 
	for(int i = 1; i <= n; i++) 	
		fc[i] = mul(fc[i - 1], i);
	ifc[n] = ksm(fc[n], Mod - 2);
	for(int i = n - 1; i; i--)
		ifc[i] = mul(ifc[i + 1], i + 1);
}
int main(){
	#ifdef FSYo
	freopen("1.in", "r", stdin);
	#endif
	cin >> n >> K;
	for(int i = 1; i <= n; i++)	
		scanf("%d", &l[i]), L += l[i];
	fc_init(L);
	int sm = 0, iL = ksm(L, Mod - 2);
	int now = 0, nxt = 1; 
	dp[0][0][0] = 1; 
	for(int i = 1; i <= n; i++){
		memcpy(dp[nxt], dp[now], sizeof(dp[nxt]));
		for(int k = 1; k * K < l[i]; k++){
			int c = mul(l[i] - k * K, iL);
			int a = mul(ifc[k], ksm(c, k));
			int b = mul(ifc[k - 1], ksm(c, k - 1));
			if(k & 1) a = dec(0, a), b = dec(0, b);
			for(int p = 0; p < i; p++)
			for(int q = 0, w; q <= sm; q++)
			if(w = dp[now][p][q])
			Add(dp[nxt][p][q + k], mul(a, w)), 
			Add(dp[nxt][p + 1][q + k], mul(b, w));
		} swap(now, nxt);
		sm += (l[i] - 1) / K;
	} 
	int ans = 0; 
	for(int i = 0; i <= n; i++)
	for(int j = 1, c; j <= sm; j++)
	if(c = dp[now][i][j]){
		int p = j - i; 
		int co = ksm(mul(j * K, iL), Mod - 2 - p);
		Mul(co, fc[p]); Add(ans, mul(c, co));
	} cout << dec(0, ans); return 0; 
}