x = int(input()) if x % 4 == 0 and x % 100 != 0: print("Leap") elif x % 100 == 0 and x % 400 == 0: print("Leap") else: print("Not Leap")