year = int(input("Enter a year ")) if(year % 400 == 0) or (year % 100 == 0) or (year % 4 == 0): print("That year is a leap year") else: print("Not a leap year")