#include using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; template using V=vector; template using VV=V>; const int MOD=998244353; ll modpow(ll x,ll n){ ll ans=1; while(n){ if(n&1) ans=ans*x%MOD; x=x*x%MOD; n/=2; } return ans; } int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); ll n,k; cin>>n>>k; V A(n); rep(i,n) cin>>A[i]; ll a=1,b=1; rep(i,n) a=a*min(k,A[i])%MOD*modpow(A[i],MOD-2)%MOD; rep(i,n) b=b*min(k-1,A[i])%MOD*modpow(A[i],MOD-2)%MOD; cout<<(a-b+MOD)%MOD<