#define MD 998244353 ll@h,@w,@m;Mint b;wt(sum[i,0,m]((b**h-(b-1)**h)*(b**w-(b++)**w)));