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