H,W=map(int,input().split()) result=1 mod=998244353 result=pow(2,(H-1)*(W-1),mod)*4 result%=mod print(result)