MOD = 998244353i64 n = read_line.to_i dp = Array.new(n) { Array.new(2 * n + 1, 0i64) } dp[0][1] = 1 1.upto(n - 1) do |i| len = 2 * i + 1 1.upto(len) do |j| dp[i][j] += dp[i - 1][j - 1] dp[i][j] += dp[i - 1][j] * ((len - j).to_i64 * (len - j - 1) // 2 % MOD) dp[i][j] %= MOD dp[i][j] += dp[i - 1][j - 1] * ((len - j).to_i64 * (j - 1) % MOD) dp[i][j] %= MOD if j > 2 dp[i][j] += dp[i - 1][j - 2] * ((j - 1).to_i64 * (j - 2) // 2 % MOD) dp[i][j] %= MOD end end end puts dp[-1].join("\n")