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:
//zxggtxdy!
#include<bits/stdc++.h>
using namespace std;
const int M=52,N=2e3+7,p=998244353;
int n,k,D,l[M],f1[N],f2[N],s[N],G[M][N],Q[M][N],dp[2][N];
inline long long pows(long long u,int v){
	long long ans=1; while(v>0) {if(v&1) ans=ans*u%p; u=u*u%p,v=v>>1;} return ans;
}
inline int binom(int a,int b){
	if(a<b||b<0) return 0; return 1ll*f1[a]*f2[a-b]%p*f2[b]%p;
}
inline int getval(int u,int q){
	int A=0,B=0; if(u<0) return 1; if(u==0) return pows(1-q+p,p-2);
	for(int i=1;i<=u+2;i++) s[i]=(s[i-1]+binom(i,u)*pows(q,i))%p; int v=pows(q,p-2);
	for(int i=1;i<=u+2;i++){
		int k=pows(v,i),b=s[i]*pows(v,i)%p,W=1ll*f1[u+2]*pows(i,p-2)%p;
		W=1ll*W*f2[i-1]%p*f2[u+2-i]%p; if((i+u)&1) W=p-W;
		A=(A+1ll*k*W)%p,B=(B+1ll*b*W)%p;
	}
	return pows(A-1+p,p-2)*B%p*pows(v,u)%p;
}
inline int getans(int u,int q){
	return pows(pows(D,p-2)*(u-q*k)%p,q)*f2[q]%p; 
}
signed main(){
	cin>>n>>k,f1[0]=f2[0]=1,G[0][0]=1;
	for(int i=1;i<=n;i++) cin>>l[i],D+=l[i];
	for(int i=1;i<=2005;i++) f1[i]=1ll*f1[i-1]*i%p,f2[i]=pows(f1[i],p-2);
	for(int i=1;i<=n;i++){
		memset(dp,0,sizeof(dp)),dp[0][0]=1,dp[1][0]=(l[i]>k);
		for(int j=1;j<=l[i]/k;j++) dp[0][j]=getans(l[i],j);
		for(int j=1;j<l[i]/k;j++) dp[1][j]=getans(l[i]-k,j);
		memset(Q,0,sizeof(Q));
		for(int a=0;a<=i;a++)
			for(int b=0;b<=D-l[i];b++)
				for(int c=0;c<=1;c++)
					for(int d=0;d<=l[i];d++)
						Q[a+c][b+d]=(Q[a+c][b+d]+1ll*G[a][b]*dp[c][d])%p;
		for(int a=0;a<=i;a++)
			for(int b=0;b<=D;b++) G[a][b]=Q[a][b];
	}
	int ans=0;
	for(int a=n;a>=0;a--)
		for(int b=0;b<=D;b++){
			if(a+b>0&&G[a][b]){
				int Q=(D-(a+b)*k+p)%p*pows(D,p-2)%p,T=pows(1-Q+p,p-2-b)*f1[b]%p;
				ans=(ans+pows(p-1,a+b+1)*G[a][b]%p*T%p)%p;
			}
		}
	cout<<ans<<endl;
	return 0;
}