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:
//starusc
#include<bits/stdc++.h>
using namespace std;
inline int read(){
	int x=0,f=1,c=getchar();
	while(!isdigit(c)){if(c=='-')f=-1;c=getchar();}
	while(isdigit(c)){x=(x<<1)+(x<<3)+(c^48);c=getchar();}
	return f==1?x:-x;
}
#define ll long long
const int mod=998244353;
inline int fix(int x){
	return x+((x>>31)&mod);
}
inline int add(int x,int y){
	return fix(x+y-mod);
}
inline int dec(int x,int y){
	return fix(x-y);
}
inline int mul(int x,int y){
	return int((ll)x*y%mod);
}
inline void ADD(int &x,int y){
	x=fix(x+y-mod);
}
inline void DEC(int &x,int y){
	x=fix(x-y);
}
inline void MUL(int &x,int y){
	x=int((ll)x*y%mod);
}
inline int ksm(int x,int r){
	int ret=1;
	for(int i=0;(1ll<<i)<=r;i++){
		if((r>>i)&1)MUL(ret,x);
		MUL(x,x);
	}
	return ret;
}
inline int inv(int x){
	return ksm(x,mod-2);
}
const int N=52,M=2004;
int n,K,L,iL,ans,l[N],f[N][M],g[N][M],fac[M],ifac[M];
inline int calc(int u,int v){
	return mul(fac[u],inv(ksm(dec(1,v),u+1)));
//	return mul(fac[u],inv(mul(ksm(v,u),ksm(dec(1,v),u+1))));
}
int main(){
	fac[0]=ifac[0]=fac[1]=ifac[1]=1;
	for(int i=2;i<M;i++)fac[i]=mul(fac[i-1],i);
	ifac[M-1]=inv(fac[M-1]);
	for(int i=M-2;i>1;i--)ifac[i]=mul(ifac[i+1],i+1);
	n=read();K=read();
	for(int i=1;i<=n;i++){
		l[i]=read();
		L+=l[i];
	}
	iL=inv(L);
	f[0][0]=1;
	for(int i=1,pw1,pw2;i<=n;i++){
		memset(g,0,sizeof(g));
		for(int k=0,mx=(l[i]-1)/K;k<=mx;k++){//l[i]-1
			pw1=mul(ifac[k],ksm(mul(l[i]-k*K,iL),k));
			if(k)pw2=mul(ifac[k-1],ksm(mul(l[i]-k*K,iL),k-1));
			if(k&1){pw1=dec(0,pw1);pw2=dec(0,pw2);}
			for(int u=0;u<i;u++){
				for(int v=0;v<=L;v++)if(f[u][v]){
					ADD(g[u][v+k],mul(f[u][v],pw1));
					if(k)ADD(g[u+1][v+k-1],mul(f[u][v],pw2));
				}
			}
		}
		memcpy(f,g,sizeof(g));
	}
	DEC(f[0][0],1);
	assert(!f[0][0]);
	for(int i=0;i<=n;i++)
		for(int j=0;j<=L;j++)if(f[i][j]){
			DEC(ans,mul(calc(j,mul(L-(i+j)*K,iL)),f[i][j]));
		}
	cout<<ans<<"\n";
	return (0-0);
}