Congratulations !!! You have successfully completed the heist by looting all the gifts in Santa's locker. Now it's time to decide who gets to take all the gifts, you or the Grinch, there will be no splitting. So you and Grinch decide to play a game.
To start the game, an Integer N will be given. The game is played in turns and for each turn, the player can make any one of the following moves:
- Divide N by any of it's odd divisors greater than 1.
- Subtract 1 from N if N is greater than 1.
Divisor of a number includes the number itself.
The player who is unable to make a move loses the game.
Since you are the mastermind of the heist, you get to play the first move.

-----Input-----
The first line contains a single integer T (1 ≤ T ≤ 100) — the number of test cases. The description of the test cases follows.
The only line of each test case contains a single integer — N (1 ≤ N ≤ 109).

-----Output-----
For each test case, print " Me" if you win, and " Grinch" if otherwise (without quotes).

-----Sample Input-----
7
1
2
3
4
5
6
12

-----Sample Output-----
Grinch
Me
Me
Grinch
Me
Grinch
Me

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = '# cook your dish here\nimport math   \n  \n# Function to find the Largest  \n# Odd Divisor Game to check \n# which player wins  \ndef findWinner(n, k):  \n      \n    cnt = 0;  \n  \n    # Check if n == 1 then  \n    # player 2 will win  \n    if (n == 1): \n        print("Grinch");  \n  \n    # Check if n == 2 or n is odd  \n    elif ((n & 1) or n == 2): \n        print("Me");  \n  \n    else: \n        tmp = n;  \n        val = 1;  \n  \n        # While n is greater than k and  \n        # divisible by 2 keep  \n        # incrementing tha val  \n        while (tmp > k and tmp % 2 == 0):  \n            tmp //= 2;  \n            val *= 2;  \n              \n        # Loop to find greatest  \n        # odd divisor  \n        for i in range(3, int(math.sqrt(tmp)) + 1):  \n            while (tmp % i == 0): \n                cnt += 1;  \n                tmp //= i;  \n          \n        if (tmp > 1): \n            cnt += 1;  \n  \n        # Check if n is a power of 2  \n        if (val == n): \n            print("Grinch");  \n  \n        elif (n / tmp == 2 and cnt == 1): \n            print("Grinch");  \n  \n        # Check if cnt is not one  \n        # then player 1 wins  \n        else: \n            print("Me");  \n              \n# Driver code  \ndef __starting_point():  \n    for i in range(int(input())):\n        n=int(input()) \n        findWinner(n, 1);  \n__starting_point()'
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 13413