# 读取输入的年份
n = int(input())

# 判断是否为闰年
if n % 400 == 0:
    print("yes")
elif n % 4 == 0 and n % 100 != 0:
    print("yes")
else:
    print("no")