# Leap Year Using Function - HackerRank Solution

year=int(input())

def is_leap(year):
    leap = False
    if year%4==0 and (year%400==0 or year%100!=0):
        leap = True
    return leap


print(is_leap(year))
