#include using namespace std; #include int main() { long long H, W; cin >> H >> W; cout << atcoder::pow_mod(2, (H-1)*(W-1)+2, 998244353) << endl; }