#define MD 998244353 {ll@n,@m;wt((sum[d,0,m](Mint(d)**n)-Mint(m)**n*~-m/2)*n*~m);}