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