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

ans = a * 100 + b * 10 + c

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

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

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

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

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

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

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


a, b, c = [int(i) for i in input().split()]
main(a, b, c)

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

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

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

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

Solution (Python):
R,G,B =map(str,input().split())
RGB=R+G+B
if int(RGB) %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())

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

Solution (Python):

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

rgb = 100*a + 10*b + c

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

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

Solution (Python):
s = input().split()
p = [int(w) for w in s]

r = p[0]
g = p[1]
b = p[2]

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

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

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

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

Solution (Python):
def main():
    r, g, b = input().split()
    number = int(r + g + b)

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

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

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

Solution (Python):
n = input().strip().split()
n = int(''.join(n))

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

rgb_list = list(map(int, input().split()))
rgb_list = map(str, rgb_list) 
rgb = ''.join(rgb_list)

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

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

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

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

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

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

figure = int(r+g+b)

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

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

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

Solution (Python):
r,g,b=map(int,input().split())
l=(str(r)+str(g)+str(b))
if 0 == (int(l)%4):
  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())
s = str(r) + str(g) + str(b)
if int(s) % 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):
a,b,c = map(int, input().split())
num=a*100+b*10+c
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,g,b = map(format, input().split())

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

Solution (Python):
num = int(''.join(input().split()))

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

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

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

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

a=a*100
b=b*10

num = a+b+c

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

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

Solution (Python):
print("YNEOS"[min(int(input().replace(" ",""))%4,1)::2])

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

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

ans = r * 100 + 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 = map(int, input().split())

n = 100*r + 10*g + b

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

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

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

Solution (Python):
a,b,c=[int(i) for i in input().split()]
num=100*a+10*b+c

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

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

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

Solution (Python):
x,y,z = map(int,input().split())
y %= 4
if y == 0:
    if z % 4 ==0:
        print("YES")
        exit()
if y == 1:
    if z % 4 == 2:
        print("YES")
        exit()
if y == 2:
    if z % 4 == 0:
        print("YES")
        exit()
if y == 3:
    if z % 4 == 2:
        print("YES")
        exit()
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=map(int,input().split())
x = b*10+c
if not x%4:
    print("YES")
else:
    print("NO")

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

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

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

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

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

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

number = int(r+g+b)

if (number % 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:
    ans = 'YES'
else:
    ans = 'NO'

print(ans)

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

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

x = (r * 100) + (g * 10) + b

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

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

Solution (Python):
import sys

r, g, b = sys.stdin.readline().split()

def main():
    ans = 'YES' if not int(g + b) % 4 else 'NO'
    print(ans)

if __name__ ==  '__main__':
    main()

Solution (Python):

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

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

num = int(r+g+b)

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

Solution (Python):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))

r,g,b = iim()
num = 100*r+10*g+b
if num%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):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = [str(i) for i in input().split()]
    ans = "".join(a)

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

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

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

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

Solution (Python):
n = input().split(" ")

n = int(n[0] + n[1] + n[2])

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

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

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

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

Solution (Python):

import math
import itertools
import statistics


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

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

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

Solution (Python):
i = int("".join(input().split()))
if i%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):
rgb = input().split()

rgb = ''.join(rgb)

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

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

Solution (Python):
import math

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

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

number=r*100+g*10+b

if number%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(str,input().split())
if int(r+g+b) % 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):
input_colors = input().split(' ')
number = ''
for i in range(3):
    number += input_colors[i]
    
if int(number)%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 = int(r+g+b)
rgb_2 = rgb%100

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

Solution (Python):
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    S = int(sys.stdin.buffer.readline().decode().replace(' ', ''))
    print('YES' if S%4 == 0 else 'NO')


if __name__ == '__main__':
    main()

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

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

Solution (Python):
import sys

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

main()

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

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

Solution (Python):


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

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

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

Solution (Python):
a=int(input().replace(" ",""))
if a%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):
l = input().split()

if (int("".join(l)) % 4 == 0):
    print("YES")
else:
    print("NO")

Solution (Python):
import sys

card = list(map(str, input().split()))

num = "" 
for i in range(len(card)):
    num += card[i]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
if __name__ == '__main__':
  main()

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

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

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

Solution (Python):

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

Solution (Python):


"""
Created on Tue Mar 10 05:50:12 2020

@author: baddude
"""


a, b, c = map(str, input().split())
abc = int(a + b + c)

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

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

l = g+b

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

else:
  print('NO')

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

n=r*100+g*10+b

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

Solution (Python):
import sys

r, g, b = sys.stdin.readline().strip().split(" ")
n = int(r) * 100 + int(g) * 10 + int(b)

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

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

Solution (Python):


b, c, d = map(int, input().split())

cin = 100*b+10*c+d

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

Solution (Python):
r,g,b=map(int,input().split())
print("YES" if (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):


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

s = 100 * a + 10 * b + c

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

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

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

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

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    a,b,c=MI()
    N=b*10+c
    if N%4==0:
        print("YES")
    else:
        print("NO")

main()

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

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

if num % 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((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):
num = int(input().replace(" ", ""))
if num%4 == 0:
  print("YES")
else:
  print("NO")

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

integer=100*r+10*g+b

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

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

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

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

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

Solution (Python):
r, g, b = map(int, input().split(' '))
x = r * 100 + g * 10 + b
if x % 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, 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()))
x = sum([N[i]*(10**(2-i)) for i in range(3)])
print("YES") if x % 4 == 0 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(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 (b*10+c)%4==0:
  print("YES")
else:
  print("NO")

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

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

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

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

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

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

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

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

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

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


if __name__ == '__main__':
    main()

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

Solution (Python):











import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,sqrt,factorial,hypot,log 
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
from fractions import gcd
from random import randint
def ceil(a,b): return (a+b-1)//b
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    a=int(ST().replace(" ",""))
    if a%4:
        print("NO")
    else:
        print("YES")
if __name__ == '__main__':
    main()

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

x = str(r) + str(g) + str(b)

num = int(x)

if num % 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")