#include #include using namespace std; using ll = long long; using mint = atcoder::modint998244353; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, k; cin >> n >> k; constexpr int th = 6400; if(k > th){ cout << "0\n"; return 0; } vector> dp(n + 1); dp[0][0] = 1; for(int i = 1; i <= 2 * n; i++){ vector> ndp(n + 1); for(int j = 0; j <= n; j++){ for(int k = 0; k <= th; k++){ if(j + 1 <= n && i + k <= th) ndp[j + 1][i + k] += dp[j][k]; if(j >= 1) ndp[j - 1][k] += dp[j][k] * mint::raw(j); } } swap(dp, ndp); } mint ans = dp[0][k]; for(int i = 1; i <= n; i++) ans *= mint::raw(i); cout << ans.val() << '\n'; }