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