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 = input().split()
n = r+g+b
if int(n)%4 == 0: print('YES')
else: print('NO')

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

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

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

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

Solution (Python):
X = int(input().replace(" ", ""))

if X % 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):
if int(input().replace(' ','')) % 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 = list(map(int, input().split()))

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

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

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 = map(int, input().split())
s = int(str(g) + str(b))
if s % 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):
def main():
    r, g, b = [ele for ele in input().split()]
    num=int(r+g+b)
    ans="NO"
    if num %4 == 0:
        ans = "YES"
    print(ans)




if __name__ == "__main__":
    main()

Solution (Python):
 

[r, g, b] = [int(i) for i in input().split()]

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

Solution (Python):
R, G, B = (int(i) for i in input().split())
ans = 100 * R + 10 * 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):
if __name__ == '__main__':
    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=input().replace(" ","")
if int(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().split())
if( ( (r * 100 ) + ( g * 10)  + b) % 4 == 0):
  print('YES')
else:
  print('NO')

Solution (Python):
rgb = int(input()[::2])
if rgb%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):
a, b, c = [ v for v in input().split() ]
if int(b+c) % 4 == 0:
  print("YES")
else:
  print("NO")

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

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

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

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

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

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

a = int(r + g + b)

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

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

rgb = 100 * int(r) + 10 * int(g) + int(b)

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

else:
    print("NO")

Solution (Python):
r, g, b = list(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 (100*r + 10*g + b) % 4 == 0:
  print('YES')
else:
  print('NO')

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

Solution (Python):
r,g,b=input().split()
sum=100*r+10*g+b
if int(sum)%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):
_, g, b = input().strip().split()
print("NO" if int(g + b) & 3 else "YES")

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

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

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

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

Solution (Python):
i = list(map(int, input().split()))
s=i[1]*10+i[2]
if s%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):
a,b,c=map(int,input().split())
 
if (100*a+10*b+c)%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):
a, b, c = map(str, input().split())

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

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

merge = 100*r + 10 * g + b

if merge%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())
print("YES" if (r*100+g*10+b)%4==0 else "NO")

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

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

answer=int(r+g+b)

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

else:
    print("NO")

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

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

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

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

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

Solution (Python):
l = list(map(int, input().split()))
if (l[0]*100+l[1]*10+l[2])%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):
print('YES' if int(input().replace(' ',''))%4==0 else 'NO')

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

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

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

Solution (Python):
r, g, b = map(int, input().split())
if (r * 10**2 + 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=map(int,input().split())

if (100*r+10*g+b)%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):
r,g,b = map(int, input().split())


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

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

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

Solution (Python):
print("YNEOS"[int(input().replace(" ",""))%4!=0::2])

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

num = int(r+g+b)

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):
input = list(map(str,input().split()))
num = ''.join(input)

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

Solution (Python):
a,g,b = map(str, input().split())
if int(a+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):
r,g,b=map(int,input().split());print('YNEOS'[(r*100+g*10+b)%4!=0::2])

Solution (Python):
print("YNEOS"[int("".join(input()[::2]))%4!=0::2])

Solution (Python):
r,g,b = map(str,input().split())
print('YES') if int(r+g+b) % 4 == 0 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,s,d=map(int,input().split())
if (10*s+d)%4==0:
  print("YES")
else:
  print("NO")

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

Solution (Python):

r, g, b = map(int, input().split())
rgb = int(str(r)+str(g)+str(b))
if rgb%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,b,c = map(int,input().split())
ans = 100*a + 10*b + c
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:
    x="YES"
else:
    x="NO"
print(x)

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

Solution (Python):
print("YNEOS"[not int("".join(input().split()))%4==0::2])

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(" "))
print('NO' if (g*10+b)%4 else 'YES')

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

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

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

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

s = 100*r+10*g+b

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

Solution (Python):

import copy
import random
import bisect 
import fractions 
import math

mod = 10**9+7

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

tmp = int(r+g+b)

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

Solution (Python):
r, g, b = list(input().split())
print('YES' if int(r+g+b) % 4 == 0 else '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())

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

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

if (r*100+g*10+b*1)%4 == 0:
  print("YES")
else:
  print("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):

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

    return r, g, b

def submit():
    r, g, b = read_input()

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


if __name__ == '__main__':
    submit()

Solution (Python):
r, g, b = map(int, 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())
if (r*100+g*10+b) % 4:
    print("NO")
else:
    print("YES")

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

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

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

num = 100*int(in_list[0])+10*int(in_list[1])+int(in_list[2])

if num%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):
r,g,b=map(int,input().split())
if (g*10+b)%4==0:
  print("YES")
else:
  print('NO')

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

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

Solution (Python):
rgb=input()
a=rgb.replace(" ", "")
b=int(a)
if 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):
a,b,c = input().split()
x = int(a + b + c)

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

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

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

Solution (Python):
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a,b,c = f()
    if (a*100 + b*10 +c )%4 == 0:
        print('YES')
    else:
        print('NO')

solve()

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

Solution (Python):
print("YES" if int(input().replace(" ",""))%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):
r,g,b=input().split()
r=int(r)
g=int(g)
b=int(b)
x=100*r+10*g+b
if x%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())

x=100*r+10*g+b

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

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

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

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

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

num = 100 * r + 10 * g + b
if num % 4 == 0:
    ans = 'YES'
else:
    ans = 'NO'

print(ans)

Solution (Python):


n = int(''.join(input().split()))

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

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

Solution (Python):
if int("".join(list(map(str, input().split())))) % 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):
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 = list(map(int, input().rstrip().split()))
print("YES" if (g * 10 + b) % 4 == 0 else "NO")

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

Solution (Python):
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


def inl():
    return list(map(int, input().split()))


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def inpm(line):
    return [inp() for _ in range(line)]


def inpfm(line):
    return [inpf() for _ in range(line)]


def inpsm(line):
    return [inps() for _ in range(line)]


def inlm(line):
    return [inl() for _ in range(line)]


def inlfm(line):
    return [inlf() for _ in range(line)]


def inlsm(line):
    return [inls() for _ in range(line)]


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper


a, b, c = inls()
print('YES' if int(a+b+c)%4==0 else 'NO')

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

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

Solution (Python):
nums = int(''.join(input().split()))
if nums % 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 == 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=input().split()
print("YES" if int(a[0]+a[1]+a[2])%4==0 else "NO")

Solution (Python):
rgb = int(input().replace(' ', ''))

if rgb % 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())
n = int(100 * r + 10 * g + b)
if n % 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())
num = int((r+g+b))
if num % 4 == 0:
  print("YES")
else:
  print("NO")

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

Solution (Python):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    INF = float("inf")
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    a, b, c = (_ for _ in input().split())
    if int(a+b+c) % 4 == 0:
        print('YES')
    else:
        print('NO')
    
if __name__ == '__main__':
    main()

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

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

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

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

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

Solution (Python):
a,b,c = map(int, input().split())
ans = 100 * a + 10 * b + c

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

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

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

Solution (Python):

work = input().split(" ")
r = int(work[0])
b = int(work[1])
g = int(work[2])
num = r*100 + b*10 +g
if(num % 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):
r,g,b=map(int,input().split())
print("YES" if (10*g+b)%4==0 else "NO")

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

Solution (Python):
print("YNEOS"[int("".join(input().split()))%4!=0::2])

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

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(str,input().split())
s=r+g+b
s=int(s)
if s%4==0:
  print('YES')
else:
  print('NO')

Solution (Python):

a, b, c = map(int, raw_input().split())

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

Solution (Python):
x, y, z =input().split()

a = int(x+y+z)
if a % 4 == 0:
  print('YES')
else:
  print('NO')

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

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

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

Solution (Python):
rgb = input().replace(' ', '')
num = int(rgb)

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

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

x = 10*g + b

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

Solution (Python):
print("YNEOS"[int("".join(input().split()))%4!=0::2])

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

Solution (Python):
print('YNEOS'[not eval(input().replace(' ','')+'%4==0')::2])

Solution (Python):
a,b,c = 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())

number=100*r + 10*g + b

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

Solution (Python):
print('NYOE S'[int(input().replace(' ',''))%4==0::2])

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

print("YES" if (10 * b + c) % 4 == 0 else "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):
a = int(input().replace(" ", ""))
print("YES" if a % 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):
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())
n=r*100+g*10+b
if n%4==0:
    print("YES")
else:
    print("NO")

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

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

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

Solution (Python):
import sys

def main():
    input = sys.stdin.readline
    A = list(map(int, input().split()))
    n = A[0] * 100 + A[1] * 10 + A[2]

    if n % 4 == 0:
        return 'YES'
    else:
        return 'NO'


if __name__ == '__main__':
    print(main())

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 ((100 * r + 10 * g + 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 = input().split()
print('YES' if int(r+g+b)%4==0 else '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 = list(map(int, input().split()))

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

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

N = R*100 + G*10 + B
print("YES" if N%4 == 0 else "NO")

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

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

total = 100*r + 10*g + b

if total % 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):
a,b,c = map(int,input().split())
if (b*10+c)%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 (100* r + 10*g + b) % 4 == 0:
    print("YES")
else:
    print("NO")

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

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

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

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

num = ''.join(list(input().split()))
if int(num)%4:
    print('NO')
else:
    print('YES')

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

num = int(''.join(list(input().split())))
if int(num)%4:
    print('NO')
else:
    print('YES')

Solution (Python):

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

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

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

Solution (Python):
s = ""
a = list(input().split())
for i in range(3):
  s += a[i]
if eval(s) % 4 == 0:
  print("YES")
else:
  print("NO")

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

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

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

Solution (Python):

from collections import defaultdict
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007


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



"""
f = [0]
for i in range(1,400):
    f.append(0)
for i in range(400,800):
    f.append(1)
for i in range(800,1200):
    f.append(2)
for i in range(1200,1600):
    f.append(3)
for i in range(1600,2000):
    f.append(4)
for i in range(2000,2400):
    f.append(5)
for i in range(2400,2800):
    f.append(6)
for i in range(2800,3200):
    f.append(7)
for i in range(3200,4801):
    f.append(-1)
n = I()
a = LI()
k = [1 for i in range(8)]
s = 0
t = 0
for i in a:
    if f[i] >= 0:
        if k[f[i]]:
            k[f[i]] = 0
            s += 1
    else:
        t += 1
print(max(s,1),min(s+t,n))
"""


"""
n = I()
s = S()
ans = []
k = 0
for i in range(n):
    if s[i] == ")":
        k += 1
    else:
        if k > 0:
            ans += ["("]*k
            k = 0
        k -= 1
if k < 0:
    ans += [")"]*(-k)
else:
    ans = ["("]*k+ans
i = 0
if len(ans) == 0:
    for i in s:
        print(i,end = "")
else:
    while ans[i] == "(":
        i += 1
        if i == len(ans):break
    for j in range(n):
        ans.insert(i+j,s[j])
    for i in ans:
        print(i,end = "")
print()
"""

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

Solution (Python):
X=[]
X=map(int,input().split(' '))
map(str,X)
Y=int(''.join(map(str,X)))
if Y%4==0:
    print('YES')
else:
    print('NO')

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

Solution (Python):
r,g,b=map(int, input().split())
x=100*r+10*g+b
if x%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())
print("YES" if (r*100+g*10+b)%4 == 0 else "NO")

Solution (Python):
def rgb_cards(r: int, g: int, b: int)->bool:
    return (10*g + b) % 4 == 0


if __name__ == "__main__":
    r, g, b = map(int, input().split())
    yes = rgb_cards(r, g, b)
    print('YES' if yes else 'NO')

Solution (Python):
s=input().split()
print('YES' if int(s[0]+s[1]+s[2])%4==0 else '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):
a,b,c=map(int,input().split())
print('NO' if (b*10+c)%4 else 'YES')

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

num = (r*100 + g*10 + b)%4

if num == 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):
a,b, c = map(int, input().split())
if (10*b+c)%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, input().split())
X = 100*r + 10*g + b
if X%4==0:
    print('YES')
else:
    print('NO')

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

Solution (Python):

a, b, c = map(int, input().split())
print('YES' if (10*b + c) % 4 == 0 else '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 = [int(x) for x in input().split()]

mul = r*100 + g*10 + b

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

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

Solution (Python):
n1, n2, n3 = map(int, input().split())
n = n2 * 10 + n3
if n % 4:
    print('NO')
else:
    print('YES')

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

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(int, input().split())

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

Solution (Python):
r, g, b = map(int,input().split())
total = r*100 + g*10 + b
if total % 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())

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

Solution (Python):
r,g,b = map(int,input().split())
shimohutaketa = 10 * g + b
if shimohutaketa % 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):
a,b,c=map(int,input().split())
print("NO" if (100*a+10*b+c)%4 else "YES")