a=input().split() b=int(a[0]) if b%4==0 and b%100>=1 or b%400==0: print("leap year") else: print("not leap year")