r,g,b = list(map(int,input().split()))

if (r*100+g*10+b)%4 == 0:

    print("YES")

else:

    print("NO")
r,g,b = input().split()

l = int(r+g+b)

print(("YES" if l%4 == 0 else "NO"))
r, g, b = list(map(int, input().split()))
if (r * 100 + g * 10 + b) % 4 == 0:
    print("YES")
else:
    print("NO")

r, g, b = input().split()
l = int(r + g + b)
print(("YES" if l % 4 == 0 else "NO"))

-r, g, b = list(map(int, input().split())) -if (r * 100 + g * 10 + b) % 4 == 0: -    print("YES") -else: -    print("NO") +r, g, b = input().split() +l = int(r + g + b) +print(("YES" if l % 4 == 0 else "NO"))