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

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


if __name__ == "__main__":
    test()

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

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

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

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

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

Solution (Python):
r,g,b=input().split()
g=int(g)
b=int(b)
H=g*10+b

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

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

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())  



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

Solution (Python):

A, B, C=map(int,input().split())

N = B * 10 + C
N %= 4

if N==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 = [int(i) for i in input().split()]

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

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

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

Solution (Python):
rgb = input()

rgb = rgb.split()

r = int(rgb[0])*100
g = int(rgb[1])*10
b = int(rgb[2])

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

Solution (Python):
print("YES" if eval(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):

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

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

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

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

Solution (Python):

import sys
INF = float("inf")


def yes():
    print("YES")  


def no():
    print("NO")  


def solve(r: int, g: int, b: int):
    if int(str(r)+str(g)+str(b)) % 4 == 0:
        yes()
    else:
        no()
    return


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  
    g = int(next(tokens))  
    b = int(next(tokens))  
    solve(r, g, b)


if __name__ == '__main__':
    main()

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

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

Solution (Python):
rgb = ''.join(input().split())
if int(rgb) % 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):
import sys
input = sys.stdin.readline

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

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

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

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):
r, g, b = map(int , input().split())

rgb = 100*r + 10*g + b

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

Solution (Python):
i = int("".join(input().split()))

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

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

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

Solution (Python):
r,g,b=(int(i) for i in input().split())
a = g*10+b
if a%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 = map(str, input().split())
s = int(r+g+b)

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):
import sys

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

if 1 > int(r) or 1 > int(g) or 1 > int(b) or 9 < int(r) or 9 < int(g) or 9 < int(b):
    sys.exit()

if int(r + g + b)%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):
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())
A = 100*a + 10*b + c

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

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

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

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

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

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

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

Number = r * 100 + g *10 + b

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

Solution (Python):


rgb = int("".join(input().rstrip(" ").split()))

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

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

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

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

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

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

Solution (Python):
print('NO' if int("".join(input().split())) & 3 else 'YES')

Solution (Python):
if int("".join(input().split())) & 3:
  print('NO')
else:
  print('YES')

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):
a = str(input())
b = int(a.replace(' ', ''))

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

Solution (Python):
num = ''.join(input().split())
if int(num)%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 = input().split()
rgb = r + g + b

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

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

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

rgb = int(r + g + b)

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

Solution (Python):
print("YES" if int(input().replace(" ",""))%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):
print("YES" if int("".join(x for x in input().split())) % 4 == 0 else "NO")

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

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

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math
import itertools
 




 
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    r,g,b = inputMap()
    
    tmp = str(r) + str(g) + str(b)
    tmp1 = int(tmp)
    
    if tmp1 % 4 == 0:
        print("YES")
    else:
        print("NO")
    
        
if __name__ == "__main__":
	main()

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

Solution (Python):
line = list(map(str, input().split()))
target = int("".join(line))
if target % 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):
x,y,z = map(int,input().split())
if (y*10+z) % 4 == 0:
    print('YES')
else:
  print('NO')

Solution (Python):

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

X = 100 * r + 10 * g + b
if X % 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())

X = 100 * r + g * 10 + b

if X % 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())
s = 10*g + b
if s%4 == 0:
  print('YES')
else:
  print('NO')

Solution (Python):
a, b, c = input().split()
kazu = int(a + b + c)
if kazu % 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("".join(input().split()))%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("".join(input().split())) % 4 == 0 else "NO")

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

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

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

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

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

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

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

Solution (Python):
a = list(input().split())
s="".join(a)
if int(s) % 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 = map(int, input().split())

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

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

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

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

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

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

Solution (Python):
S = list(map(str, input().split()))
S = int(S[0] + S[1] + S[2])

if S%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(str, input().split())

ans = int(r + g + b)

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

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

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')


def A():
    _, b, c = LS()
    x = int(b[0] + c[0]) % 4
    if not x:
        print("YES")
    else:
        print("NO")
    return


def B():
    return


def C():
    return


def D():
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == '__main__':
    A()

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

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

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

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


main()

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())
A = 100*r + 10*g + b

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

Solution (Python):



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

x = str(r)+str(g)+str(b)
if int(x) % 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())
n = 100 * r + 10 * g + b
if n % 4 == 0:
    print('YES')
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):

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

ans = str(r) + str(g) + str(b)
ans = int(ans)

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

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

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

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

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

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

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

Solution (Python):

ls = list(map(int,input().split()))




num = int(ls[0]) * 100 + int(ls[1]) * 10 + int(ls[2])
if num%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 = input().split()

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

Solution (Python):

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

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

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

s = "".join(s)
s = int(s)
if s % 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 = map(int, input().split())


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


print(ans)

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

Solution (Python):
a = input().split(" ")
b = int(a[0]+a[1]+a[2])

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

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

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

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

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

if((10*b + g) % 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 = [int(n) for n in 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 (10*g+b)%4==0:
    print('YES')
else:
    print('NO')

Solution (Python):

input = input().split()
r = input[0]
g = input[1]
b = input[2]
x = int(r+g+b)
if x%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):

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

if __name__ == '__main__':
    main()

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

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

Solution (Python):
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

r, g, b = nl()

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

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

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

Solution (Python):

import sys
sys.setrecursionlimit(300000)

YES = "YES"  
NO = "NO"  

def solve(r: int, g: int, b: int):
    if (r * 100 + g * 10 + b) % 4 == 0:
        ret = YES
    else:
        ret = NO
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  
    g = int(next(tokens))  
    b = int(next(tokens))  
    solve(r, g, b)

if __name__ == '__main__':
    main()

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

Solution (Python):
s = input().split()
print('YES' if int(''.join(s))%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())
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):
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().replace(" ", ""))

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

else:
    print('NO')

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

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

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

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

Solution (Python):
r,g,b = input().split()
se = r+g+b
se_num = int(se)
if se_num%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):


num = input().split()
a = (num[0])
b = (num[1])
c = (num[2])

key1= a + b + c
key2=int(key1)

if key2 % 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())
sum = r*100 + g*10 + b
if sum % 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):
N = input().split()
sn = ""
for i in N:
    sn += i
print('YES' if int(sn) % 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):
x = int(input().replace(" ",""))
if x % 4 == 0: print("YES")
else: print("NO")

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

chk = r*100 + g*10 + b

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

Solution (Python):
a,b,c=map(int,input().split())
Num=100*a+10*b+c
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())
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):
def abc():
    rgb = ''.join(input().split())
    print('NO' if int(rgb) % 4 else 'YES')


abc()

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

Solution (Python):
x, y, z = map(int, input().split())
ans = x * 100 + y * 10 + z
if ans % 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):


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

s = r*100 + g*10 + b

if s%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()

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

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

word = ''
for x in i:
  word += (str(x))
  
if int(word)%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())
num = 100*r + 10*g + b
if num % 4 == 0:
  print("YES")
else:
  print("NO")

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

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

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