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 fo(i,a,b)for(int i=a,_e=b;i<=_e;++i)
#define fd(i,a,b)for(int i=b,_e=a;i>=_e;--i)
#define ll long long
using namespace std;
const int N=2005,mo=998244353;
int n,k,tot,sum,ans,l;
int len[N],fac[N],ifac[N],f[55][N],g[2][N],h[55][N];
int pw(int x,int y=mo-2){
	int t=1;
	for(;y;y>>=1,x=(ll)x*x%mo)if(y&1)t=(ll)t*x%mo;
	return t;
}
int main(){
	n=2000;
	fac[0]=1;
	fo(i,1,n)fac[i]=(ll)fac[i-1]*i%mo;
	ifac[n]=pw(fac[n]);
	fd(i,0,n-1)ifac[i]=(ll)ifac[i+1]*(i+1)%mo;
	scanf("%d%d",&n,&k);
	f[0][0]=1;
	fo(i,1,n)scanf("%d",&len[i]),tot+=len[i];
	int itot=pw(tot);
	fo(i,1,n){
		l=len[i];
		int lk=(l-1)/k;
		fo(p,0,i)fo(j,0,sum+lk)h[p][j]=0;
		fo(j,0,lk)g[0][j]=(ll)ifac[j]*pw((ll)(l-j*k)*itot%mo,j)%mo*(j&1?-1:1);
		fo(j,1,lk)g[1][j]=(ll)ifac[j-1]*pw((ll)(l-j*k)*itot%mo,j-1)%mo*(j&1?-1:1);
		fo(p,0,i-1)fo(j,0,sum){
			int v=f[p][j];
			if(!v)continue;
			fo(q,0,1)fo(k,0,lk)
				h[p+q][j+k]=((ll)v*g[q][k]+h[p+q][j+k])%mo;
		}
		fo(p,0,i)fo(j,0,sum+lk)f[p][j]=h[p][j];
		sum+=lk;
	}
	f[0][0]=0;
	fo(p,0,n)fo(i,0,sum)
		if(f[p][i])
			ans=((ll)f[p][i]*pw((ll)itot*i*k%mo,mo-1-(i-p+1))%mo*fac[i-p]+ans)%mo;
	cout<<((ll)-ans+mo)%mo;
}