#abc230h. [abc230_h]Bullion

[abc230_h]Bullion

Problem Statement

Takahashi won a claw machine competition and was awarded "all-you-can-stuff" gold blocks.
There are unlimited numbers of blocks weighing w1,w2,dots,wKw_1, w_2, \\dots, w_K kilograms each, and an unlimited number of bags weighing 11 kilogram each to stuff them.

Takahashi can bring home one non-empty bag.
A bag can contain zero or more other non-empty bags and zero or more gold blocks.

After arranging a truck with a load capacity of WW kilograms, he gets interested in the number of ways to stuff gold blocks and bring home a bag that weighs ww kilograms in total for w=2,3,dots,Ww = 2, 3, \\dots, W.
Find the number, modulo 998244353998244353, of possible states of the bag for each w=2,3,dots,Ww = 2, 3, \\dots, W. Here,

  • two gold blocks are said to be the same when their weights are the same;
  • two bags are said to be in the same state when the two multisets whose elements are the bags and gold blocks in the two bags are the same.

Constraints

  • 2leqWleq2.5times1052 \\leq W \\leq 2.5 \\times 10^5
  • 1leqKleqW1 \\leq K \\leq W
  • 1leqwileqW1 \\leq w_i \\leq W (1leqileqK)(1 \\leq i \\leq K)
  • ineqjtowineqwji \\neq j \\to w_i \\neq w_j (1leqi,jleqK)(1 \\leq i,j \\leq K)
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

WW KK w1w_1 w2w_2 dots\\dots wKw_K

Output

Print the answer in W1W - 1 lines.
The ii-th line should contain the count for w=i+1w = i + 1.


Sample Input 1

4 1
1

Sample Output 1

1
2
4

The figure below enumerates the possible states of the bag for w=2,3,4w = 2, 3, 4. (A circle represents a bag.)

image


Sample Input 2

10 10
1 2 3 4 5 6 7 8 9 10

Sample Output 2

1
3
7
18
45
121
325
904
2546