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>
const int N=2005,mo=998244353;
inline int poww(int x,int y){
	int ans=1;
	for(;y;y>>=1,x=1ll*x*x%mo)if(y&1)ans=1ll*ans*x%mo;
	return ans;
}
int fac[N],vf[N],inv[N];
int n,k,l[55],S,f[55][N],i,j,o,p,q,w[2][N],ans;
int main(){
	for(i=*fac=*vf=1;i<N;++i)fac[i]=1ll*fac[i-1]*i%mo,
		inv[i]=i==1?1:1ll*(mo-mo/i)*inv[mo%i]%mo,vf[i]=1ll*vf[i-1]*inv[i]%mo;
	scanf("%d%d",&n,&k);
	for(i=1;i<=n;++i)scanf("%d",l+i),S+=l[i];
	**f=1;
	for(i=1;i<=n;++i){
		int lm=(l[i]-1)/k;
		for(j=0;j<=lm;++j)w[0][j]=1ll*vf[j]*poww(1ll*inv[S]*(l[i]-j*k)%mo,j)%mo;
		for(j=0;j<lm;++j)w[1][j]=1ll*vf[j]*poww(1ll*inv[S]*(l[i]-j*k-k)%mo,j)%mo;
		for(j=n;j>=0;--j)for(p=S/k;p>=0;--p){
			int nv=0;
			for(o=0;o<2 && o<=j;++o)for(q=0;q<=lm-o && q<=p;++q)nv=(nv+1ll*f[j-o][p-q]*w[o][q])%mo;
			f[j][p]=nv;
		}
	}
	ans=0;
	for(i=0;i<=n;++i)for(j=0;j<=S/k && (i+j)*k<S;++j){
		q=1ll*inv[S]*(S-(i+j)*k)%mo;
		if(q==1)continue;
		ans=(ans+1ll*poww(poww(1+mo-q,mo-2),j+1)*(i+j&1?fac[j]:mo-fac[j])%mo*f[i][j])%mo;
	}
	printf("%d\n",ans);
}