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