import sys sys.setrecursionlimit(10050) from collections import defaultdict dic = defaultdict(int) MOD = 998244353 N = int(input()) N2 = 2 * N + 1 def code(x,y): return x * N2 + y def f(lr): if lr in dic: return dic[lr] l = lr // N2 r = lr % N2 ret = 0 if l > 1 and r > 1: ret += ((l-1)*(r-1)+ 1)*f(code(l-1,r-1)) if r > 2: ret += (r-1)*(r-2)//2*f(code(l,r-2)) if l > 2: ret += (l-1)*(l-2)//2*f(code(l-2,r)) if l == 1 and r == 1: ret += 1 dic[lr] = ret % MOD return ret % MOD ans = [0] * (2 * N + 1) for i in range(N + 1): a = f(code(i,2 * N - i)) ans[i] = ans[2*N-i] = a for a in ans: print(a)