Sum of Distinct Numbers#6960

Sum of Distinct Numbers

1 second
128 megabytes
Easy

A positive integer can be represented as a sum of distinct positive integers in several ways. For example:

Here, different permutations of the same set of summands are considered the same. For example, 1 + 2 + 3, 2 + 1 + 3, and 3 + 1 + 2 all count as the same way.

Input

The first line contains the number of test cases (1 \le t \le 20).

Each of the following lines contains a single integer (1 \le n \le 2000).

Output

For each number , print on a separate line the number of different ways to represent it as a sum of distinct positive integers, as described above.

Since the answer may be very large, print it modulo .

Examples

Example 1

Loading
Loading