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<cstdio>
#include<algorithm>
#define P 998244353
#define N 55
#define L 2005

inline int fmo(int x){
	return x+((x>>31)&P);
}
inline int fp(int x,int k=P-2){
	if(k<0)
		k+=P-1;
	int res=1;
	for(;k;k>>=1,x=1ll*x*x%P)
		if(k&1)
			res=1ll*res*x%P;
	return res;
}

int n,k,a[N],l;

int fac[L],inv[L],ifac[L];
inline void init(int x){
	fac[0]=1;
	for(int i=1;i<=x;i++)
		fac[i]=1ll*fac[i-1]*i%P;
	inv[1]=1;
	for(int i=2;i<=x;i++)
		inv[i]=fmo(P-1ll*P/i*inv[P%i]%P);
	ifac[0]=1;
	for(int i=1;i<=x;i++)
		ifac[i]=1ll*ifac[i-1]*inv[i]%P;
}

int m,f[N][L][N],g[L][N];

int ans;

int main(){
	scanf("%d%d",&n,&k);
	for(int i=1;i<=n;i++){
		scanf("%d",&a[i]);
		l+=a[i];
	}
	init(l);
	f[0][0][0]=1;
	for(int i=1;i<=n;i++){
		for(int j=0;j<=(a[i]-1)/k;j++){
			int A=1ll*(a[i]-j*k)*inv[l]%P;
			if(j)
				g[j-1][1]=1ll*(j&1?P-1:1)*ifac[j-1]%P*fp(A,j-1)%P;
			g[j][0]=1ll*(j&1?P-1:1)*ifac[j]%P*fp(A,j)%P;
		}
		for(int j=0;j<=(a[i]-1)/k;j++)
			for(int o=0;o<2;o++)
				for(int x=0;x<=m;x++)
					for(int y=0;y<i;y++)
						f[i][j+x][o+y]=fmo(f[i][j+x][o+y]+1ll*g[j][o]*f[i-1][x][y]%P-P);
		m+=(a[i]-1)/k;
		for(int j=0;j<=(a[i]-1)/k;j++)
			for(int o=0;o<2;o++)
				g[j][o]=0;
	}
	for(int i=0;i<=m;i++)
		for(int j=0;j<=n;j++){
			int a=i,b=fmo(1-1ll*(i+j)*k*inv[l]%P),c=f[n][i][j];
			if(b==1)
				continue;
			ans=fmo(ans-1ll*c*fac[a]%P*fp(fp(fmo(1-b),a+1))%P);
		}
	printf("%d\n",ans);
}