#include #include using namespace std; using ll = long long; using mint = atcoder::modint998244353; int main(){ ios::sync_with_stdio(false); cin.tie(0); int h, w; cin >> h >> w; cout << mint(2).pow((ll)(h) * w - h - w + 3).val() << '\n'; }