ante = int(input())
eyes = int(input())

if 3 <= ante and eyes <= 4:
    print("TroyMartian")
if 6 >= ante and eyes >= 2:
    print("VladSaturnian")
if 2 >= ante and eyes <= 3:
    print("GraemeMercurian")