K = int(input()) mod = 998244353 l = [[], [], [(1, 1)], [(2, 9)], [(2, 25), (3, 36)], [(2, 25), (3, 256), (4, 100)], [(3, 882), (4, 1225), (5, 225)], [(3, 1764), (4, 8036), (5, 4096), (6, 441)], [(3, 1764), (4, 35280), (5, 40644), (6, 11025), (7, 784)], [(4, 107604), (5, 285444), (6, 149850), (7, 25600), (8, 1296)], [(4, 213444), (5, 1524600), (6, 1460349), (7, 450725), (8, 53361), (9, 2025)]] ans = [] for i in l: s = 0 for x, y in i: s += y * pow(x, K, mod) ans.append(s % mod) print(*ans)