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

a = 100*r + 10*g + b



if a%4 ==0:

  print('YES')

else:

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

a = r*100+g*10+b

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

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

-a = 100 * r + 10 * g + b -if a % 4 == 0: -    print("YES") -else: -    print("NO") +a = r * 100 + g * 10 + b +print(("YES" if a % 4 == 0 else "NO"))