Bracket Sequences#399

Bracket Sequences

1 second
128 megabytes
Very easy

You are given a set of square tiles. Each tile has a bracket symbol printed on it. The tiles can be rotated, so each tile can be used as either an opening bracket or a closing bracket.

Your task is to determine how many different valid bracket sequences can be formed using all the given tiles.

A bracket sequence is considered valid if:

Input

The first line contains the integer — the number of test cases. Each of the next lines contains an integer — the number of tiles available for that test case.

Output

Print lines, each containing a single number — the count of different valid bracket sequences that can be formed using all tiles.

Examples

Example 1

Loading
Loading