<gh_stars>0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""Problem 005

Write a function

Source : https://www.hackerrank.com/challenges/write-a-function/problem
"""

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

year = int(input())
print(is_leap(year))

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""Problem 005

Write a function

Source : https://www.hackerrank.com/challenges/write-a-function/problem
"""

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

year = int(input())
print(is_leap(year))
#!/usr/bin/env python3 # -*- coding: utf-8 -*- Problem 005  Write a function  Source : https://www.hackerrank.com/challenges/write-a-function/problem