#include <bits/stdc++.h>
using namespace std;
int main() {
  int w, h;
  cin >> w >> h;
  int ans = 1;
  int MOD = 998244353;
  for (int i = 0; i < w + h; i++) ans = (ans * 2) % MOD;
  cout << ans << endl;
}
