a = int(input().replace(" ",""))



if a % 4 == 0:

    print("YES")

    

else:

    print("NO")

a,b,c=input().split()

x=a

x+=b

x+=c

if int(x)%4==0:

    print('YES')

else:

    print('NO')
a = int(input().replace(" ", ""))
if a % 4 == 0:
    print("YES")
else:
    print("NO")

a, b, c = input().split()
x = a
x += b
x += c
if int(x) % 4 == 0:
    print("YES")
else:
    print("NO")

-a = int(input().replace(" ", "")) -if a % 4 == 0: +a, b, c = input().split() +x = a +x += b +x += c +if int(x) % 4 == 0: