year=int(input("Enter a year: ")) year4=year%4 year100=year%100 year400=year%400 if year4==0: print("the year", year, "is a leap year") elif year100==0 and year400!=0: print ("the year", year, "is not a leap year") elif year100==0 and year400==0: print("the year", year, "is a leap year") else: print("the year", year, "is not a leap year")