#abc221h. [abc221_h]Count Multiset

[abc221_h]Count Multiset

Problem Statement

Given are positive integers NN and MM.

For each k=1,2,ldots,Nk=1,2,\\ldots,N, find the following number and print it modulo 998244353998244353.

  • The number of multisets AA containing kk positive integers that satisfy both of the following conditions:
    • the sum of the elements of AA is NN;
    • for every positive integer xx, AA contains at most MM occurrences of xx.

Constraints

  • 1leqMleqNleq50001 \\leq M \\leq N \\leq 5000
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN MM

Output

Print NN lines; the ii-th line (1leqileqN)(1 \\leq i \\leq N) should contain the answer for the case k=ik=i.


Sample Input 1

4 2

Sample Output 1

1
2
1
0
  • For k=1k=1, there is one multiset AA that satisfies the conditions: 4\\{4\\}.
  • For k=2k=2, there are two multisets AA that satisfy the conditions: 1,3\\{1,3\\} and 2,2\\{2,2\\}.
  • For k=3k=3, there is one multiset AA that satisfies the conditions: 1,1,2\\{1,1,2\\}.
  • For k=4k=4, there is no multiset AA that satisfies the conditions.

Sample Input 2

7 7

Sample Output 2

1
3
4
3
2
1
1