# Problem: https://open.kattis.com/problems/armystrengtheasy

import sys
# Cmd + D to print the results in the console

input = sys.stdin.readlines()
no_tc = int(input[0])

for i in range(no_tc):
  g_army = input[4 * i + 3].split()
  m_army = input[4 * i + 4].split()

  max_g = max([int(x) for x in g_army])
  max_m = max([int(x) for x in m_army])
  print('MechaGodzilla' if max_g < max_m else 'Godzilla')

c401085590fe1036dc58e9bbc4771a8033d26a16
<mask token>

<mask token>
for i in range(no_tc):
    g_army = input[4 * i + 3].split()
    m_army = input[4 * i + 4].split()
    max_g = max([int(x) for x in g_army])
    max_m = max([int(x) for x in m_army])
    print('MechaGodzilla' if max_g < max_m else 'Godzilla')

<mask token>
input = sys.stdin.readlines()
no_tc = int(input[0])
for i in range(no_tc):
    g_army = input[4 * i + 3].split()
    m_army = input[4 * i + 4].split()
    max_g = max([int(x) for x in g_army])
    max_m = max([int(x) for x in m_army])
    print('MechaGodzilla' if max_g < max_m else 'Godzilla')

import sys
input = sys.stdin.readlines()
no_tc = int(input[0])
for i in range(no_tc):
    g_army = input[4 * i + 3].split()
    m_army = input[4 * i + 4].split()
    max_g = max([int(x) for x in g_army])
    max_m = max([int(x) for x in m_army])
    print('MechaGodzilla' if max_g < max_m else 'Godzilla')

# Problem: https://open.kattis.com/problems/armystrengtheasy

import sys
# Cmd + D to print the results in the console

input = sys.stdin.readlines()
no_tc = int(input[0])

for i in range(no_tc):
  g_army = input[4 * i + 3].split()
  m_army = input[4 * i + 4].split()

  max_g = max([int(x) for x in g_army])
  max_m = max([int(x) for x in m_army])
  print('MechaGodzilla' if max_g < max_m else 'Godzilla')
