Under construction

Still being built. Things may change

Camp room assignment

Time limit3sMemory limit1024 MB

Summary
For each n from 1 to m, count the length-2n sequences over m universities in which no university appears more than n times.
Level

Medium6 of 10

Topics
Combinatorics, Math
Solved
No attempts yet

Problem

In the JAG country, there are a total of mm universities, and we plan to invite 2n2n students to a training camp. Each student is affiliated with one of the mm universities. During the camp, the students will be accommodated in nn twin rooms, so each room is assigned exactly two students.

A room assignment is good if and only if the two students sharing each room come from different universities.

We want to know how often a good room assignment is feasible. There are m2nm^{2n} possible sequences of university affiliations. Find how many of them admit a good room assignment.

We do not yet know how many rooms we can provide. Therefore, for each n=1,2,…,mn = 1, 2, \dots, m, find how many sequences of university affiliations admit a good room assignment.

Since the answer may be huge, print the answers modulo 998 244 353998\,244\,353.

Input

The input is a single line containing an integer mm between 11 and 200 000200\,000, inclusive.

Output

Output mm lines. On the ii-th line, output the answer for n=in = i.

Examples3

  1. Example 1

    Input
    3
    
    Expected output
    6
    54
    510
    
  2. Example 2

    Input
    5
    
    Expected output
    20
    540
    14300
    370300
    9454620
    
  3. Example 3

    Input
    20
    
    Expected output
    380
    158460
    63889400
    636003875
    443532759
    163564701
    433390846
    160318339
    979712600
    445802634
    862134704
    374397421
    898644169
    181404073
    884138261
    856576908
    608198482
    349239556
    724235122
    812173715