r, g, b = input().split()

string = r + g + b

num = int(string)

if num % 4 == 0:

    print("YES")

else:

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

if int(r + g + b) % 4 == 0:

    print("YES")

else:

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

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

-string = r + g + b -num = int(string) -if num % 4 == 0: +if int(r + g + b) % 4 == 0: