# Arup Guha
# 1/5/2013
# Solution to Programming Knights Practice Program Chapter 2 Problem 9
# Leap Year

def main():

    # Get the year.
    year = int(input("What year do you want to know about on planet C?\n"))
    

    # Assume the year is a leap year.
    leap = True

    # Change this is it isn't divisible by 7.
    if year%7 != 0:
        leap = False

    # Or, if it's divisible by either 35 or 77.
    elif year%35 == 0 or year%77 == 0:
        leap = False

    # Print out result.
    if leap:
        print(year, "is a leap year on planet C.")
    else:
        print(year, "is NOT a leap year on planet C.")


main()
