#include #include #include #include using namespace std; using namespace atcoder; using ll = long long; using mint = modint998244353; const int MX = 400010; mint f[MX],inv[MX],fi[MX]; constexpr ll mod = 998244353; void solve(){ inv[1] = 1; for(int i=2;i> h >> w; vector ff(h + 1),gg(w + 1); for(i=(h + 1)/2;i<=h;i++){ ff[i] = fi[h - i]*fi[2*i - h]; } for(i=(w + 1)/2;i<=w;i++){ gg[i] = fi[w - i]*fi[2*i - w]; } vector hh = convolution(ff,gg); mint ans = 0; for(i=0;i<=(h + w);i++){ ans += hh[i]*f[i]; } cout << ans.val() << "\n"; }