跳到主要内容
图灵 OJTURING / ONLINE JUDGE

#F0962. PolandBall and Many Other Balls

  • ID: 968
  • 传统题
  • 2000ms
  • 256MiB
  • 尝试: 0
  • AC · 已通过: 0
  • 教学难度:挑战
  • 上传者:
  • 组合数学
  • 分治
  • 动态规划
  • FFT
  • 数学
  • 数论
  • 算法思想
  • 挑战
  • 难度
  • 共享题库
  • Codeforces
  • 英文题面
  • 题目来源
  • 题面语言

PolandBall and Many Other Balls

题目描述

G. PolandBall and Many Other Balls
time limit per test
6 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

PolandBall is standing in a row with Many Other Balls. More precisely, there are exactly n Balls. Balls are proud of their home land− and they want to prove that it's strong.

The Balls decided to start with selecting exactly m groups of Balls, each consisting either of single Ball or two neighboring Balls. Each Ball can join no more than one group.

The Balls really want to impress their Enemies. They kindly asked you to calculate number of such divisions for all m where 1≤m≤k. Output all these values modulo 998244353, the Enemies will be impressed anyway.

Input

There are exactly two numbers n and k (1≤n≤109, 1≤k<215), denoting the number of Balls and the maximim number of groups, respectively.

Output

You should output a sequence of k values. The i-th of them should represent the sought number of divisions into exactly i groups, according to PolandBall's rules.

Examples
Input
3 3
Output
5 5 1 
Input
1 1
Output
1 
Input
5 10
Output
9 25 25 9 1 0 0 0 0 0 
Note

In the first sample case we can divide Balls into groups as follows:

{1}, {2}, {3}, {12}, {23}.

{12}{3}, {1}{23}, {1}{2}, {1}{3}, {2}{3}.

{1}{2}{3}.

Therefore, output is: 5 5 1.


题目来源:fps-www.educg.net-codeforce-1-2833.xml.zip;FPS 共享题包,题包内第 402 题。保留原作者与原赛事署名。