×

- 17.14%
- 1000ms
- 65536K

Jessie and Justin want to participate in e-sports. E-sports contain many games, but they don't know which one to choose, so they use a way to make decisions.

They have several boxes of candies, and there are $i$ candies in the $i^{th}$ box, each candy is wrapped in a piece of candy paper. Jessie opens the candy boxes in turn from the first box. Every time a box is opened, Jessie will take out all the candies inside, finish it, and hand all the candy papers to Justin.

When Jessie takes out the candies in the $N^{th}$ box and hasn't eaten yet, if the amount of candies in Jessie's hand and the amount of candy papers in Justin's hand are both perfect square numbers, they will choose Arena of Valor. If only the amount of candies in Jessie's hand is a perfect square number, they will choose Hearth Stone. If only the amount of candy papers in Justin's hand is a perfect square number, they will choose Clash Royale. Otherwise they will choose League of Legends.

Now tell you the value of $N$, please judge which game they will choose.

The first line contains an integer $T(1 \le T \le 800)$ , which is the number of test cases.

Each test case contains one line with a single integer: $N(1 \le N \le 10^{200})$ .

For each test case, output one line containing the answer.

4 1 2 3 4

Arena of Valor Clash Royale League of Legends Hearth Stone