Universal Cup Judging System

Universal Cup

Time Limit: 3.0 s Memory Limit: 1024 MB Total points: 100 Hackable ✓
Statistics

Misha wrote down a few integers that he considers beautiful in a notebook and went to play with pluses and minuses. He considers a string of pluses and minuses to be balanced if it has an equal number of both signs and ends with a beautiful number of minuses. How many balanced strings of length $2, 4, \dots, 2n$ are there? The answers may be very large, so find them modulo $998244353$.

Input

The first line contains two integers, $n$ and $m$: the maximum length of a string and the number of integers in Misha's notebook ($1 \le n, m \le 200000$).

The next line contains $m$ distinct non-negative integers in the range $[0, n]$: the numbers from Misha's notebook.

Output

Output $n$ lines with answers modulo $998244353$.

Example

Input

5 3
1 2 3

Output

1
3
10
34
120

Editorials

IDTypeStatusTitlePosted ByLast UpdatedActions
#1081EditorialOpenNew Editorial for Problem #17166GotoHiotoriView
#1537EditorialOpenNew Editorial for Problem #17166Xuan0109View
#1217EditorialOpen题解jianglyView

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.