#P7835. Counting

Counting

Counting

Problem Description

Notice:Don't output extra spaces at the end of one line. Koishi loves counting problems. There are two permutations P1,P2P_1,P_2. Each permutation consists of nn integers from 11 to nn. Koishi wants to merge them. She has an array AA. Initially AA is empty. In each operation, Koishi will compare two head elements of P1,P2P_1,P_2, select the smaller one, erase it from the permutation and append it to AA, if the two head elements are the same, Koishi can select one of them arbitrarily, and if one of permutation is already empty, Koishi will select the head element from the other one. Koishi will do this operation repeatedly until the two permutations are all empty. What's more, Koishi can also select P1P_1 and P2P_2 arbitrarily. Given nn,How many different AA can be generated? modulo 998244353998244353

Input

The first line contains an positive integer T(1T105)T(1\leq T\leq 10^5). There are TT test cases. The following TT lines, each contains an positive integer n(1n105)n(1\leq n\leq 10^5).

Output

You should output TT lines, each contain a non-negative integer integer representing the answer

Sample Input

4
1
2
3
4

Sample Output

1
4
38
650

Source

2020 Multi-University Training Contest 7