Gnutella Chessmaster

n x n 체스판에 k개의 비숍을 서로 공격하지 않게 놓는 경우의 수를 k = 1부터 2n-1까지 각각 998244353으로 나눈 나머지로 구한다.

어려움9조합론동적 계획법분할 정복수학아직 제출이 없습니다시간 제한3초메모리 제한512 MB

문제

Alexander has recently achieved ridiculously high rating on Chessforces competition website. Alexander's coach challenged him with a difficult problem so that Alexander could truly prove his mettle.

Consider an n×nn \times n chessboard. A bishop is a chess piece that attacks all positions sharing a diagonal with it. A non-attacking configuration is an arrangement of several bishops on the chessboard such that no two bishops occupy the same position, and no bishop attacks any other.

Alexander has to count the number of non-attacking bishop configurations with exactly kk bishops for each kk from 11 to 2n12n - 1. Since the answers can be large, each number has to be computed modulo a completely random number 998,244,353998\\,244\\,353.

입력

The first line contains a single integer nn (1n1051 \leq n \leq 10^5).

출력

Print 2n12n - 1 integers. The kk-th of these integers should be the number (modulo 998,244,353998\\,244\\,353) of non-attacking configurations of exactly kk bishops on an n×nn \times n chessboard.