Problem2291-- Log Chopping

2291: Log Chopping

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

There are nn logs, the ii-th log has a length of aiai meters. Since chopping logs is tiring work, errorgorn and maomao90 have decided to play a game.

errorgorn and maomao90 will take turns chopping the logs with errorgorn chopping first. On his turn, the player will pick a log and chop it into 22 pieces. If the length of the chosen log is xx, and the lengths of the resulting pieces are yy and zz, then yy and zz have to be positive integers, and x=y+zx=y+z must hold. For example, you can chop a log of length 33 into logs of lengths 22 and 11, but not into logs of lengths 33 and 0022 and 22, or 1.51.5 and 1.51.5.

The player who is unable to make a chop will be the loser. Assuming that both errorgorn and maomao90 play optimally, who will be the winner?

Input

Each test contains multiple test cases. The first line contains a single integer tt (1≤t≤1001≤t≤100)  — the number of test cases. The description of the test cases follows.

The first line of each test case contains a single integer nn (1≤n≤501≤n≤50)  — the number of logs.

The second line of each test case contains nn integers a1,a2,…,ana1,a2,…,an (1≤ai≤501≤ai≤50)  — the lengths of the logs.

Note that there is no bound on the sum of nn over all test cases.

Output

For each test case, print "errorgorn" if errorgorn wins or "maomao90" if maomao90 wins. (Output without quotes).

Input



Output



Sample Input Copy

2
4
2 4 2 1
1
1

Sample Output Copy

errorgorn
maomao90

Source/Category