H,W=map(int, input().split()) p=(H-1)*(W-1)+2 mod=998244353 print(pow(2,p,mod))