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