#define MD 998244353 ll@N,@M,@K,p=1<=K);wt(sum[s,0,p](D[s][M-1]));