BaoBao is keen on collection. Recently he is abandoning himself to Kantai Collection, especially to collecting cute girls, known as "Fleet Girls".

There are \(n\) various types of girls in the game. To get a girl, one can use some materials to build her. The probability to get a type of girl by building is the same for all types of girls. From the Coupon Collector's Problem we know that, to collect all types of girls, the expected number of times of building is \(\sum\limits_{i=1}^n\frac{n}{n-i+1}\).

But this rule does not apply to BaoBao, as he is always luckier than the ordinary players (maybe because he's an European). For BaoBao to collect all types of girls, the expected number of times of building is \(s = \sum\limits_{i=1}^n\left\lfloor\frac{n}{n-i+1}\right\rfloor\), where \(\lfloor x \rfloor\) means the maximum integer that doesn't exceed \(x\).

As a lucky man, BaoBao is not interested in the actual value of \(s\), and he just wants to know whether \(s\) is odd or even. Can you help him?

The first line of the input is an interger \(T\) (about 100), indicating the number of test cases. For each test case:

The first line contains an integer \(n\) (\(0 \le n \le 10^{1000}\)), indicating the number of types of girls.

提交代码