PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000230. Đếm dãy theo tích các phần tử (Multiplicative Arrays)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Đếm dãy theo tích các phần tử (Multiplicative Arrays)

Multiplicative Arrays

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

You are given two positive integers kk and nn. For every integer xx from 11 through kk, count the integer arrays a=(a1,…,al)a=(a_1,\ldots,a_l) satisfying:

  • The length ll lies between 11 and nn, inclusive.
  • Every entry obeys 1≤ai≤k1\le a_i\le k.
  • The product a1a2⋯ala_1a_2\cdots a_l equals xx.

Arrays of different lengths, or differing at any position, are distinct. Arrays consisting only of 11s are included. Print the kk counts for x=1,2,…,kx=1,2,\ldots,k, modulo 998244353998244353.

Input

The only line contains two integers k,nk,n.

Output

Print exactly kk integers in increasing order of x=1,2,…,kx=1,2,\ldots,k: the count for product xx modulo 998244353998244353.

Subtasks

  • Subtask 1 (20 points): 1≤k≤81\le k\le8; 1≤n≤81\le n\le8.

  • Subtask 2 (30 points): 1≤k≤10001\le k\le1000; 1≤n≤1041\le n\le10^4.

  • Subtask 3 (50 points): 1≤k≤1051\le k\le10^5; 1≤n≤9⋅1081\le n\le9\cdot10^8.

Examples

Input

2 2

Output

2 3

Explanation

For k=2,n=2k=2,n=2, all entries are 11 or 22, and lengths are 11 or 22. Product 11 has the arrays [1][1] and [1,1][1,1]. Product 22 has [2][2], [1,2][1,2], and [2,1][2,1]. The output is therefore 2 32\ 3.