x=int(input("Enter a year: ")) tf=False if x%4 == 0: tf=True if x%100==0: tf=False if x%400==0: tf=True else: tf=False if tf: print(x, "is a leap year") else: print(x, "is not a leap year")