There was a magic necklace. The necklace is made of magical gems numbered 1 through n. Unfortunately, the necklace was accidentally broken yesterday. Every gem was scattered on the ground.
The first line of the input contains one integer t — the number of test cases.(t ≤ 110)The next t lines contain test cases. Each line contains a positive integer n(0 ≤ n ≤ 11)describing a test case.
For each test case, output a line containing an integer which indicates the answer.