Gew is looking for "Eminor" sequences $$$[a_1, a_2, \ldots, a_m]$$$ which have the following properties:
Now, Gew is curious about how many "Eminor" sequences there are. Since there may be a large number of "Eminor" sequences, you only need to output the answer modulo $$$998\,244\,353$$$.
The input contains a single integer $$$n$$$ ($$$1 \leq n \leq 10^6$$$).
Output a single integer, denoting the number of "Eminor" sequences, modulo $$$998\,244\,353$$$.
1
1
2
6
3
91
For the second testcase, the following are $$$6$$$ possible "Eminor" sequences.
Irrelevent: Originating from an incorrect problem reading https://mirror.codeforces.com/gym/102956/problem/C XD