s = input() if "69" in s or "420" in s: print("Mergjad!") else: print("Leim!")