Problem:
 Score : 100 points    Problem Statement AtCoDeer has three cards, one red, one green and one blue. An integer between 1 and 9 (inclusive) is written on each card: r on the red card, g on the green card and b on the blue card. We will arrange the cards in the order red, green and blue from left to right, and read them as a three-digit integer. Is this integer a multiple of 4 ?      Constraints  1 ≤ r, g, b ≤ 9         Input Input is given from Standard Input in the following format:  r  g  b       Output If the three-digit integer is a multiple of 4 , print YES (case-sensitive); otherwise, print NO .        Sample Input 1 4 3 2      Sample Output 1 YES  432 is a multiple of 4 , and thus YES should be printed.       Sample Input 2 2 3 4      Sample Output 2 NO  234 is not a multiple of 4 , and thus NO should be printed.

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

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

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    rgb = int(''.join(input().split()))
    print('YES' if rgb % 4 == 0 else 'NO')

main()

Solution (Python):
r,g,b = map(str, input().split())

n = int(r+g+b)
if n%4 ==0:
  print("YES")
else:
  print("NO")

Solution (Python):
a,b,c=map(int,input().split())
if (b*10+c)%4==0:print("YES")
else:print("NO")

Solution (Python):
r,g,b=(int(x) for x in input().split())

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

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

Solution (Python):
r,g,b = (int(i) for i in input().split())

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

Solution (Python):
a, b, c = map(int, input().split())
if((10*b+c)%4==0):
    print("YES")
else:
    print("NO")

Solution (Python):
msg = 'YES' if int(''.join(list(map(str, input().split(' ')))))%4==0 else 'NO'
print(msg)

Solution (Python):
a,b,c=map(int,input().split())
if (b*10+c)%4:
  print("NO")
else:
  print("YES")

Solution (Python):
def func(a, b ,c):
    number = int(a + b + c)
    result = 'YES' if number % 4 == 0 else 'NO'
    return result

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

print(func(r,  g, b))

Solution (Python):
def func(a, b ,c):
    number = a + b + c
    result = 'YES' if int(number) % 4 == 0 else 'NO'
    return result

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

print(func(r,  g, b))

Solution (Python):
nums = [i for i in input().split()]
if int("".join(nums))%4==0:
	print("YES")
else:
	print("NO")

Solution (Python):
args = input().split()

r, g, b = args

n = int(r) * 100 + int(g) * 10 + int(b) * 1

if n % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
args = input().split()

r, g, b = args

n = int(r) * 100 + int(g) * 10 + int(b) * 1

if n % 4 == 0:
    print("YES")
else:
    print("NO")

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

Solution (Python):
n = int("".join(list(input().split())))
if n % 4:
    print("NO")
else:
    print("YES")

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

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

Solution (Python):
def main():
    r, g, b = map(int, input().split())
    x = r * 100 + g * 10 + b
    if x % 4 == 0:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    main()

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

Solution (Python):
r, g, b = [int(x) for x in input().split()]
result = 10*g+b

if result % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
N = input().split()
if(int("".join(N))%4 == 0):
  print("YES")
else:
  print("NO")

Solution (Python):
a,b,c = map(int, input().split())
d = a*100+b*10+c
if d%4==0:
  print("YES")
else:
  print("NO")

Solution (Python):
a, b, c = map(int, input().split())

d = b * 10 + c

if d % 4 == 0:
  print("YES")
else:
  print("NO")

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

Solution (Python):
r, g, b = map(str, input().split())
ans = r + g + b

ans_i = int(ans)
 
if ans_i % 4 == 0:
    print('YES')
else:
    print('NO')

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

Solution (Python):
a, b, c = map(int,input().split())
if (a*100+b*10+c)%4==0:
  print('YES')
else:
  print('NO')

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

Solution (Python):
a,b,c=map(int,input().split())
if((100*a+10*b+c)%4==0):
  print('YES')
else:
  print('NO')

Solution (Python):
a, b, c = input().split()

if (int(a+b+c)%4 == 0):
    print("YES")
else:
    print("NO")

Solution (Python):
r,g,b = map(int,input().split())

print("YES" if (10*g+b) % 4 == 0 else "NO")

Solution (Python):
a,b,c=map(int,input().split())
k=a*100+b*10+c
if k%4==0:
  print("YES")
else:
  print("NO")

Solution (Python):
r, g, b = map(str, input().split())
ans = r + g + b

ans_i = int(ans)

if ans_i % 4 == 0:
    print('YES')
else:
    print('NO')

Solution (Python):
from sys import stdin

a, b, c = [int(x) for x in stdin.readline().rstrip().split()]
r = (a * 100) + (b * 10) + c
if r % 4 == 0:
    print("YES")
else:
    print("NO")

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

Solution (Python):
r,g,b=map(str,input().split())
ans=int(r+g+b)
if ans%4==0:
    print('YES')
else:
    print('NO')

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

Solution (Python):
s=int(input()[::2])
print("NO" if s%4 else "YES")

Solution (Python):
s=int(input().replace(" ",""))
print("YES" if s%4==0 else "NO")

Solution (Python):
A,B,C=map(int,input().split())
if (10*B+C)%4==0:
  print("YES")
else:
  print("NO")

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

Solution (Python):
rgb = int(input().replace(" ", ""))
print("YES" if rgb % 4 == 0 else "NO")

Solution (Python):
a = list(input().split())

n = int(''.join(a))

if n % 4 == 0:
    print('YES')
else:
    print('NO')

Solution (Python):
print("YES" if int(input()[0::2])%4==0 else "NO")

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

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

Solution (Python):
from sys import stdin
n = stdin.readline().rstrip().split()
if int(n[0]+n[1]+n[2])%4 == 0:
  print('YES')
else:
  print('NO')

Solution (Python):
r,g,b = map(int,input().split())

if((g*10+b)%4 == 0):
  print('YES')
else:
  print('NO')

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

Solution (Python):
a,b,c = map(int, input().split())

num = a*100 + b*10 + c

if(num % 4 == 0):
    print("YES")
else:
    print("NO")

Solution (Python):
print(['NO','YES'][int(input().replace(' ',''))%4==0])

Solution (Python):
l = list(input().split())
print("YES") if int(l[0] + l[1] + l[2]) % 4 == 0 else print("NO")

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

Solution (Python):
a,b,c=map(int,input().split())
print("YES" if (100*a+10*b+c)%4==0 else "NO")

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

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

Solution (Python):

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

Solution (Python):
r, g, b = map(int, input().split())

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

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

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

Solution (Python):
r, g, b = map(int, input().split())
s = str(r) + str(g) + str(b)
s = int(s)
if s % 4 == 0:
    print('YES')
else:
    print('NO')

Solution (Python):
a, b, c = map(int, input().split())
if (100*a + 10*b + c) %4 ==  0:
  print("YES")
else:
  print("NO")

Solution (Python):
a,b,c=map(int,input().split())
if (b*10 +c)%4:
	print('NO')
else:
	print('YES')

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

Solution (Python):
a, b, c = map(int, input().split())
d = 100*a + 10*b + c
if d%4 == 0:
  print("YES")
else:
  print("NO")

Solution (Python):

"""
Created on Sun Feb 24 02:00:50 2019

@author: yuta
"""

def judge(r,g,b):
    ans = 100*r + 10*g + b
    if ans % 4 == 0:
        print("YES")
    else:
        print("NO")
        
x = input().split()
judge(int(x[0]),int(x[1]),int(x[2]))

Solution (Python):
n = int(input().replace(' ', ''))
if n % 4 == 0:
    print('YES')
else:
    print('NO')

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

Solution (Python):
n = list(map(int, input().split()))
n[0] *= 100
n[1] *= 10

if sum(n) % 4 == 0:
    print('YES')
else:
    print('NO')

Solution (Python):
a, b, c = [ int(x) for x in input().split() ]

x = 10 * b + c
ans = x % 4 == 0

print("YES" if ans else "NO")
print()

Solution (Python):
a=int("".join(input().split()))
if a%4==0:
  print("YES")
else:
  print("NO")

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

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

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

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

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

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

Solution (Python):
print('YES' if int(input()[0:5:2])%4 == 0 else 'NO')

Solution (Python):
a,b,c=map(int,input().split());print( 'YES' if (a*100+b*10+c)%4==0 else 'NO')

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

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

Solution (Python):
a = int("".join(input().split()))
if a%4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
a = list(map(str,input().split()))
s = ''.join(a)
if int(s)%4 == 0:
    print('YES')
else:
    print('NO')

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

Solution (Python):
print("YES" if int("".join(list(input().split())))%4==0 else "NO")

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

Solution (Python):
rgb = int(input().replace(' ',''))
if rgb % 4 == 0: print('YES')
else: print('NO')

Solution (Python):
rgb = list(map(int, input().split()))
ans = rgb[1]*10+rgb[2]
if ans%4 == 0:
    print('YES')
else:
    print('NO')

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

Solution (Python):
s = input().split()
if int(''.join(s)) % 4 == 0:
  print("YES")
else:
  print("NO")

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

Solution (Python):
rgb = int(input().replace(" ",""))
print("YES" if rgb % 4 == 0 else "NO")

Solution (Python):
r,g,b = map(int,input().split())

print("YES" if (g*10+b)%4 ==0 else "NO")

Solution (Python):
print('YNEOS'[int(input()[::2])%4>0::2])

Solution (Python):
print("NO" if int(input()[::2])%4 else "YES")

Solution (Python):
a,b,c=map(int,input().split())
if((10*b+c)%4==0):
  print("YES")
else:
  print("NO")

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

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

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

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

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

Solution (Python):
r,g,b = map(int,input().split())

if (10*g+b)%4 == 0:
    print('YES')
else:
    print('NO')

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

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

Solution (Python):
print(["NO","YES"][int("".join(input().split()))%4==0])

Solution (Python):
n=''.join(input().split())
print('YES') if int(n)%4==0 else print('NO')

Solution (Python):
r, g, b = map(int, input().split())

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

Solution (Python):
""" AtCoder """

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

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

Solution (Python):
l    = input().split()
r, g, b = map(int, l)

val = r * 100 + g * 10 + b
mod_4 = divmod(val, 4)
mod_4 = mod_4[1]

if mod_4 == 0 :
    print('YES')
else :
    print('NO')

Solution (Python):
r,g,b= map(int,input().split())
a=(str(r)+str(g)+str(b))
if int(a)%4==0:
	print('YES')
else:
	print('NO')

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

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

val = g * 10 + b

if val % 4:
    print('NO')
else:
    print('YES')

Solution (Python):
n = [int(i) for i in input().split()]

if (n[0] * 100 + 10 * n[1] + n[2]) % 4 == 0:
    print("YES")
else:
    print("NO")

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

Solution (Python):
r, g, b = map(int, input().split())

print('YES' if (100*r + 10*g + b) % 4 == 0 else 'NO')

Solution (Python):

def getIntList(): return [int(x) for x in input().split()]
r,g,b = getIntList()
n = r*100+g*10+b
if n%4==0: print('YES')
else: print('NO')

Solution (Python):
r, g, b = [int(x) for x in input().split()]
print('YES' if (g * 10 + b) % 4 == 0 else 'NO')

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

Solution (Python):
R,G,B = map(int,input().split())
print("YES" if (R*100+G*10+B)%4==0 else "NO")

Solution (Python):
list = input().split()
r = int(list[0])
g = int(list[1])
b = int(list[2])

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

Solution (Python):


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

s = r + g + b

if int(s)%4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
a=list(map(int,input().split()))
ans=a[0]*100+a[1]*10+a[2]
if ans%4==0:
    print("YES")
else:
    print("NO")

Solution (Python):
a=list(map(str,input().split()))
print("NO"if(int(a[1]+a[2]))%4!=0else"YES")

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

Solution (Python):
r,g,b = [s for s in input().split()]

i = int(g + b)
if (i % 4 == 0) :
	print("YES")
else :
	print("NO")

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

Solution (Python):
r,g,b = (int(i) for i in input().split())
if (100*r+10*g+b)%4 == 0:
 print('YES')
else:
 print('NO')

Solution (Python):
if __name__ == '__main__':
    r,g,b,=[i for i in input().split()]

    if int(r+g+b)%4==0:
        print('YES')
    else:
        print('NO')

Solution (Python):
s = input().split()
if int(str(s[0])+str((s[1]))+str(s[2]))%4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
import sys

r, g, b = input().split()
rgb = int(r + g + b)

if rgb % 4 == 0 :
    print("YES")
else :
    print("NO")

Solution (Python):
R, G, B = [int(_) for _ in input().split()]

x = R * 100 + G * 10 + B

if x % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
n=[int(i) for i in input().split()]

if (100*n[0]+10*n[1]+n[2])%4==0:
  print('YES')
else:
  print('NO')

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

Solution (Python):
int_r, int_g ,int_b = map(int, input().split())

if (int_r * 100 + int_g * 10 + int_b) % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
print(['NO','YES'][int(input().replace(' ',''))%4==0])

Solution (Python):
print("NO" if int(input().replace(" ",""))%4 else "YES")

Solution (Python):
if int(''.join(input().split())) % 4 == 0:
    print('YES')
else:
    print('NO')

Solution (Python):
a,b,c = list(map(int, input().split()))
s = 100*a + 10*b + c
if s%4 == 0:
  print("YES")
else:
  print("NO")

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

Solution (Python):
A = input().split()
print("YES" if int("".join(A)) % 4 == 0 else "NO")

Solution (Python):
x,y,z = map(int,input().split())
a = int(str(y)+str(z))
if a % 4 ==0:
  print("YES")
else:
  print("NO")

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

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

Solution (Python):
r, a, b = map(int, input().split())

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

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


abc064_a()

Solution (Python):
a,b,c=map(str,input().split())
n=int(a+b+c)
if n%4==0:
    print("YES")
else:
    print("NO")

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

Solution (Python):
r, g, b = (int(x) for x in input().split())
print('YES' if (g * 10 + b) % 4 == 0 else 'NO')

Solution (Python):
from sys import stderr, setrecursionlimit
from functools import reduce
from operator import add
setrecursionlimit(2147483647)
def f(n=1):
    if n == 1:
        return [int(i) for i in input().split()]
    res = []
    for i in range(n):
        res.append([int(j) for j in input().split()])
    return res
def debug(*x, sep=" ", end="\n"):
    for item in x:
        stderr.write(str(item))
        stderr.write(sep)
    stderr.write(end)

rgb = int("".join(input().split()))
print("NO" if rgb%4 else "YES")

Solution (Python):

x,y,z = map(int,input().split())
if (y*10+z) %4 ==0:
    print("YES")
else:
    print("NO")

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

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

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

Solution (Python):
temp = input().rstrip().split(" ")
r = temp[0]
g = temp[1]
b = temp[2]
ans = int(r+g+b)
if ans % 4 == 0 :
    print("YES")
else:
    print("NO")

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

Solution (Python):
def main():
    r, g, b = map(int, input().split())
    s = r * 100 + g * 10 + b
    if s % 4 == 0:
        print('YES')
    else:
        print('NO')


if __name__ == '__main__':
    main()

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

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

Solution (Python):
S=int(input().replace(" ",""))
if S%4==0:
    print("YES")
else:
    print("NO")

Solution (Python):
r, g, b = [int(i) for i in input().split()]
if (100 * r + 10 * g + b) % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
a,b,c=map(int,input().split())
print('NO'if(2*b+c)%4>0else'YES')

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

Solution (Python):

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

Solution (Python):
from statistics import mean, median,variance,stdev
import sys
import math

x = input().split()

a= []
for i in range(len(x)):
    a.append(int(x[i]))

if (a[0]*100+a[1]*10+a[2])%4:print("NO")
else:print("YES")

Solution (Python):
a,b,c=input().split();print(["NO","YES"][int(a+b+c)%4==0])

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

Solution (Python):
a, b, c = map(int, input().split())
if (10*b + c) % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):

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

Solution (Python):
r,g,b=[int(i) for i in input().split()]
if (100*r+10*g+b)%4==0:
  print("YES")
else:
  print("NO")

Solution (Python):
a,b,c=map(int,input().split())
g=int(str(b)+str(c))
if g%4==0:
  print("YES")
else:
  print("NO")

Solution (Python):
r, g, b = map(int, input().split())

print("YES" if (10 * g + b) % 4 == 0 else "NO")

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

Solution (Python):
r, g, b = map(int, input().split())

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

Solution (Python):
s = input()
if int(''.join(s.split(" "))) % 4 == 0:
  print("YES")
else:
  print("NO")

Solution (Python):
print(['YES','NO'][(int(input().replace(" ","")))%4>0])

Solution (Python):
r, g, b = [ int(i) for i in input().split()]
if (r*100+g*10+b)%4:
    print("NO")
else:
    print("YES")

Solution (Python):
a=list(map(int,input().split()))
if (a[1]*10 + a[2]) % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
r, g, b = map(int, input().split())

target = 10 * g + b
if target % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
a,b,c=map(int,input().split(' '))
d=(b*10+c)%4
if d==0:
	print('YES')
else:
	print('NO')

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

Solution (Python):


if __name__ == "__main__":
    r, g, b = map(str, input().split())

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

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

Solution (Python):
l = input().split()

a = int(''.join(l))

if a % 4 == 0:
	print('YES')
else:
	print('NO')

Solution (Python):
a = int(''.join(input().split()))
if a%4 == 0:
    print('YES')
else:
    print('NO')

Solution (Python):
r, g, b = map(str,input().split())
N = int(r + g + b)

if N % 4 == 0:
    print("YES")
else:
    print("NO")

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

Solution (Python):
a=input().strip().split(" ")

b=[int(i) for i in a]

c=100*b[0]+10*b[1]+b[2]

if(c%4==0):
    print("YES")
else:
    print("NO")

Solution (Python):
n = int(''.join(input().rstrip().split()))
print('YES' if n % 4 == 0 else 'NO')

Solution (Python):
a,b,c = map(int,input().split(" "))
if (a * 100 + b * 10 + c) % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
r, g, b = map(int, input().split())

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

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

Solution (Python):
a = list(map(int,input().split()))
b = a[0]*100 + a[1] *10 + a[2]
if b % 4 == 0:
  print("YES")
else:
  print("NO")

Solution (Python):
R,G,B = map(str,input().split())

res = int(R+G+B)

if res % 4 == 0:
    print('YES')
else:
    print('NO')

Solution (Python):
a, b, c = map(int, input().split())
if (10*b+c)%4 == 0:
  print('YES')
else:
  print('NO')

Solution (Python):
r, g, b = map(int, raw_input().split())
n = r * 100 + g * 10 + b
if n % 4 == 0 :
    print("YES")
else :
    print("NO")

Solution (Python):
r, g, b = map(int,input().split())

answer = r*100 + g*10 + b

if answer % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
r,g,b=input().split()

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

Solution (Python):
r,g,b = map(int,input().split())

if (10*g+b)%4 == 0:
        print('YES')
else:
        print('NO')

Solution (Python):
rgb = int("".join(raw_input().split()))

print "YES" if rgb % 4 == 0 else "NO"

Solution (Python):
r, g, b = map(str, input().split( ))
ans = 'NO'

if int(r + g + b) % 4 ==0:
	ans = 'YES'
print(ans)

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

Solution (Python):
_,a,b=map(int,input().split())
print('YNEOS'[(a*10+b)%4>0::2])

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

Solution (Python):
a = int(''.join(input().split()))
print('YES' if a % 4 == 0 else 'NO')

Solution (Python):
s = input().replace(" ", "")
print("YES" if int(s)%4 == 0 else "NO")

Solution (Python):


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

answer = 'YES' if (r * 100 + g * 10 + b) % 4 == 0 else 'NO'

print(answer)

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

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

Solution (Python):
print('YES' if int(''.join(input().split())) % 4 == 0 else 'NO')

Solution (Python):


a=input()
n=int(a.replace(' ',''))

if n%4==0:
  print('YES')
else:
  print('NO')

Solution (Python):
data = input().split()
s = data[0] + data[1] + data[2]
if int(s) % 4 == 0:
	print('YES')
else:
	print('NO')

Solution (Python):
r,g,b=map(int,input().split())

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

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

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

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

Solution (Python):
r,g,b=map(str,input().split())
print('YES'if int(r+g+b)%4==0 else'NO')

Solution (Python):
r,g,b = input().split()
rgb = int("".join([r, g, b]))
print("YES" if rgb%4==0 else "NO")

Solution (Python):
r,g,b = map(str,input().split())
n = int(r+g+b)
if n % 4 ==0 :print('YES')
else: print('NO')

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

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

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

Solution (Python):
r, g, b = input().split()
a = int(r + g + b)
print(["NO", "YES"][a % 4 == 0])

Solution (Python):
a,b,c = input().split()
d = a+b+c
e = float(int(d))
if e%4==0:
    print("YES")
else:
    print("NO")

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

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

Solution (Python):
r,g,b = map(str, input().split())

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

Solution (Python):

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

a = 100 * r + 10 * g + b

if a % 4 == 0:
    print('YES')
else:
    print('NO')

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

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

Solution (Python):
r_str, g_str, b_str = input().split(" ")

print("YES" if int(g_str+b_str)%4 == 0 else "NO")

Solution (Python):
print(["NO","YES"][int("".join(input().split())) % 4 == 0])

Solution (Python):
s = int("".join(input().split()))
print(["NO", "YES"][s % 4 == 0])

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

Solution (Python):
r,g,b = [int(i) for i in input().split()]
print('YES' if (100*r+10*g+b)%4 == 0 else 'NO')

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

Solution (Python):
listS = list(map(str, input().split()))
if int(listS[0]+ listS[1]+ listS[2])%4==0:
    print("YES")
else:
    print("NO")

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

Solution (Python):
s = int("".join(input().split()))
print("YES" if s % 4 == 0 else "NO")

Solution (Python):
r,g,b = map(int, input().split())

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

Solution (Python):
n = input().replace(" ", "")
print("YES" if int(n) % 4 == 0 else "NO")

Solution (Python):

print(["NO", "YES"][int(input().replace(" ", "")) % 4 == 0])

Solution (Python):
a = list(map(int,(input().split())))

if (a[0]*100 + a[1]*10 + a[2]) % 4 == 0:
    print('YES')
else:
    print('NO')

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

Solution (Python):
r, g, b = map(int, input().split())
if (2*g + b)%4 == 0:
  print('YES')
else:
  print('NO')

Solution (Python):
r, g, b = map(int, input().split())

sum = 100 * r + 10 * g + b

if sum % 4 == 0:
    print("YES")

else:
    print("NO")

Solution (Python):
r, g, b = map(int, input().split())
print('YES' if not (r * 100 + g * 10 + b) % 4 else 'NO')

Solution (Python):
print(["NO","YES"][int(input()[::2])%4<1])

Solution (Python):
print(["NO","YES"][int(input().replace(" ", ""))%4==0])

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

Solution (Python):
num = int(input().replace(" ", ""))
if num % 4 == 0:
    print("YES")
else:
    print("NO")

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

Solution (Python):
print('YNEOS'[int(input().replace(' ',''))%4>0::2])

Solution (Python):
print('YNEOS'[int(input().replace(' ',''))%4>0::2])

Solution (Python):
x,a,b = map(int,input().split())
print('YES' if (x*100 + a*10 + b) % 4 == 0 else 'NO')

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

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

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

Solution (Python):
r,g,b=map(int, input().split())
print(["NO","YES"][(g*10+b)%4==0])