a=int(input())
if a%100==0:
if a%4==0:
print("No")
else:
print("Yes")
elif a%4==0:
print("Yes")
else:
print("No")
a=int(input())
if a%100==0:
if a%4==0:
print("No")
else:
print("Yes")
elif a%4==0:
print("Yes")
else:
print("No")