#define MD 998244353 ll n,k,a[2d5]; Mint s,d[11][1024]; { rd(n,k,a(n)); d[0][0]=1; rep[a](h,n){ rrep(j,10){ rep(i,1024){ if(!(i&h)){ d[j+1][i|h]+=d[j][i]; } } } } if(k<11){ rep(i,1024){ s+=d[k][i]; } } wt(s); }