2025-05-12 22:17:12 +09:00

2 lines
60 B
Python

n = int(input())
print(+(n%400==0 or (n%4==0 and n%100!=0)))