#include using namespace std; using i64 = int64_t; constexpr i64 mod = 998244353; i64 power(i64 a, i64 r) { i64 res = 1; for (; r; r >>= 1, a = a * a % mod) { if (r & 1) { res = res * a % mod; } } return res; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); i64 n, k; cin >> n >> k; int m = 2 * n + 4; vector f(m + 1, 1), g(m + 1, 1); for (i64 i = 1; i <= m; i += 1) { g[i] = power(f[i] = f[i - 1] * i % mod, mod - 2); } auto c = [&](int n, int m) { if (n < m or m < 0) { return i64(0); } return f[n] * g[m] % mod * g[n - m] % mod; }; i64 ans = c(m, k); if (k % 2 == 0) { ans += c(m / 2, k / 2); } if (n == 2) { if (k % 2 == 0) { ans += c(m / 2, k / 2); } } else { for (int i = 0; i <= 2 and i <= k; i += 1) { if ((k - i) % 2 == 0) { ans += c(2, i) * c(m / 2 - 1, (k - i) / 2) % mod; } } } if (k % 2 == 0) { ans += c(m / 2, k / 2); } // cerr << ans << "\n"; cout << ans * power(4, mod - 2) % mod; }