# leapyear.py
#
# Description: to determine if a year is a leap year or not
# Input      : a year
# Output     : whether or not the given year is a leap year

def main ():
    year = eval (input ("Enter year: "))
    if (year % 4 == 0):
        if (year % 100 == 0):
            if (year % 400 == 0):
                result = 1
            else:
                result = 0
        else:
            result = 1
    else:
        result = 0
        
    # display answer
    if result == 1:
        print (year, "is a leap year")
    else:
        print (year, "is not a leap year")
main()