x = int(input())

if x % 400 == 0 or x % 4 == 0:
    print("Leap")
elif x % 100 == 0:
    print("Not Leap")
else:
    print("Not Leap")