cd=int(raw_input())
if((cd%400==0) or ((cd%4==0) and (cd%100!=0))):
    print("yes")
else:
    print("no")

3bd6b2cf947a5fee4470b7a8afcc8cc94f9339cd
<mask token>

<mask token>
if cd % 400 == 0 or cd % 4 == 0 and cd % 100 != 0:
    print('yes')
else:
    print('no')

cd = int(raw_input())
if cd % 400 == 0 or cd % 4 == 0 and cd % 100 != 0:
    print('yes')
else:
    print('no')

cd=int(raw_input())
if((cd%400==0) or ((cd%4==0) and (cd%100!=0))):
    print("yes")
else:
    print("no")
