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())
if (b*10+c)%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 = list(map(int, input().split(" ")))

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

Solution (Python):



import sys
from collections import deque

inputline = list(map(int, sys.stdin.readline().split()))

rgb = inputline[0] * 100 + inputline[1] * 10 + inputline[2]

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

Solution (Python):
num = input().split() 
temp = ''
for i in range(len(num)):
    temp = temp + num[i]
print( ['NO','YES'][int(temp)%4==0] )

Solution (Python):
cs = [ int(x) for x in input().split() ]
n = cs[0] * 100 + cs[1] * 10 + cs[2]
if n % 4 == 0 :
            print("YES")
else :
            print("NO")

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

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

Solution (Python):


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

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

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

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

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

C=r*100+g*10+b

if C%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):
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(a): return "".join(list(map(str, a)))

r,g,b = rli()

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

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

cards = int(r + g + b)

if cards % 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 g % 2 ==0 and b % 4 ==0 or g%2 ==1 and b%4==2:
    print("YES")
else:
    print("NO")

Solution (Python):

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

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

Solution (Python):
from collections import defaultdict


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


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):
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):
input_line_1 = raw_input()
x, y, z = input_line_1.split(" ")
if (int(y) * 10 + int(z)) % 4 == 0:
	print "YES"
else:
	print "NO"

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

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

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

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

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

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

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

Solution (Python):
import sys

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

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

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

Solution (Python):


import sys
import subprocess
import json
import time
import math
import re
import sqlite3

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

Solution (Python):


import sys
import subprocess
import json
import time
import math
import re
import sqlite3

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

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

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

B = int("".join(A))

while B > 4:
        B %= 4

if B == 0:
        print("YES")
else:
        print("NO")

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

Solution (Python):


def solve():
    abc = input().split()
    s = ""
    for i in abc:
        s += i
    n = int(s)
    if n % 4 == 0:
        print('YES')
    else:
        print('NO')
    
        
if __name__ == '__main__':
    solve()

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

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

else:
    print('NO')

Solution (Python):
a= raw_input().split()

sum = int(a[0])*100 + int(a[1])*10 + int(a[2])

if sum%4 == 0:
	print "YES"
else:
	print "NO"

Solution (Python):
a=input().split()
b=int(a[0])*100+int(a[1])*10+int(a[2])
if 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):
numbers = [i for i in input().split()]
number = numbers[0] + numbers[1] + numbers[2]
number = int(number)

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

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

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

Solution (Python):
l = raw_input().split(" ")
num=int(l[0])*100+int(l[1])*10+int(l[2])

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

Solution (Python):


import sys
import math

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

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


exit(0)

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

y = int(x[0]) * 100 + int(x[1]) * 10 + int(x[2])

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

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

t = i.replace(' ','')
if int(t)%4 == 0:
    print('YES')
else:
    print('NO')

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

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

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

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

Solution (Python):

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

n = int(r + g + b)

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

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

Solution (Python):


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

Solution (Python):
p = [int(x) for x in  input().split(" ")]
if (p[1]*10+p[2])%4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):

raw = raw_input().split(" ")
num = int(raw[0]) * 100 + int(raw[1]) * 10 + int(raw[2])
if not (num % 4):
    print 'YES'
else:
    print 'NO'

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

if __name__ == "__main__":
    solve()

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

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

Solution (Python):
R, G, B = list(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())

a = 10*g + b

answer = a % 4

if answer == 0:
    print("YES")
else:
    print("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())

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

Solution (Python):
def f(r, g, b):
    if (100 * r + 10 * g + b) % 4 == 0:
        return 'YES'
    else:
        return 'NO'

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

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

Solution (Python):

r,g,b = map(int, raw_input().split(' '))
mod = (100 * r + 10 * g + b) % 4

if mod == 0:
	print 'YES'
else:
	print 'NO'

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

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

check = int(r + g + b)

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

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

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

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

Solution (Python):
"""
AtCoder Beginner Contest 064
A - RGB Cards
@author Ren Serizawa
"""

import sys
nums = [num for num in input().split(" ")]
num3digit = int(("").join(nums)) if ("").join(nums).isdigit() else -1
if num3digit < 0 or not len(nums) == 3:
    sys.stderr.write("Error: Invalid input\n")
    exit()
isMultipleOf4 = "YES" if num3digit % 4 == 0 else "NO"
print(isMultipleOf4)
exit()

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

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

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

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

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

Solution (Python):
a = input()

a = a.split()

r = int(a[0])
g = int(a[1])
b = int(a[2])

number = r * 100 + g * 10 + b

"""
print(a)
print(r)
print(g)
print(b)
print(number)
"""

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

Solution (Python):

import sys

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

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

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

r=int(a[0])
g=int(a[1])
b=int(a[2])

x=100*r+10*g+b

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

Solution (Python):
import sys

input_file = 'a1.in'



s = input().split()
t = int(''.join(s))

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

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

Solution (Python):
def read(): return list(map(int, input().split()))

c = read()
print("YES" if (100*c[0] + 10*c[1] + c[2]) % 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):
print "YES" if int(raw_input().replace(" ", "")) % 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):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()


def main():
    r,g,b = LI()
    t = g*10+b
    if t % 4 == 0:
        return 'YES'

    return 'NO'


print(main())

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

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

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


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

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

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

Solution (Python):
import sys

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

    val = 100*r + 10*g + b

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

if __name__ == '__main__':
    solve()

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

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

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

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

Solution (Python):
import sys
 
stdin = sys.stdin
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()


a, b, c = na()

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

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

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

Solution (Python):


r, g, b = map(int, input().split())
num = (100 * r) + (10 * g) + (1 * b)

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

Solution (Python):


import sys
import os

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

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

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

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

Solution (Python):
l = map(int, raw_input().split())
v = 100*l[0] + 10*l[1] + l[2]

if v % 4 == 0:
    print "YES"
else:
    print "NO"

Solution (Python):
print("NO" if sum([int(i)*10**(2-t) for t,i in enumerate(input().split())])%4 else "YES")

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

Solution (Python):



import array
from bisect import *
from collections import *
import fractions
import heapq 
from itertools import *
import math
import re
import string

R, G, B = input().split()
if int(R + G + B) % 4 == 0:
    ans = 'YES'
else:
    ans = 'NO'
print(ans)

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):
n = [int(i) for i in input().split()]
if (10*n[1] + n[2]) % 4 == 0:
    print("YES")
else:
    print("NO")

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

Solution (Python):
a=raw_input()

aa=int(a.replace(' ',''))

if aa/4*4==aa:
    print('YES')
else:
    print('NO')

Solution (Python):
s=input().split()
x=int(s[0])
y=int(s[1])
z=int(s[2])
c=100*x+10*y+z
if(c%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,raw_input().split())

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

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

Solution (Python):
number = input().split()
number = [int(i) for i in number]
if (number[1] * 10 + number [2]) % 4 == 0:
    print("YES")
else:
    print("NO")

Solution (Python):
N = input().split()
sum = int(N[0])*100 + int(N[1])*10 + int(N[2])

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

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

Solution (Python):

"""
Created on Sun Aug 28 21:42:33 2016

@author: you
"""

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

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

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

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

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

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

Solution (Python):
x = list(map(int, input().split()))
y=x[0]*100+x[1]*10+x[2]
oyu=0

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


quit()

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

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

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

Solution (Python):

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

Solution (Python):



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

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


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

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

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

Solution (Python):
inputs = list(map(int, input().split(" ")))
R = inputs[0]
G = inputs[1]
B = inputs[2]

sum = R*100 + G*10 + B

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

num =r*100+g*10+b

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

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

if __name__ == '__main__':
    main()

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

ans = rgb[0] * 100 + rgb[1] * 10 + rgb[2]

if ans % 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):
def main():
    RGB = input()

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

main()

Solution (Python):



def main():
    r, g, b = [int(x) for x in raw_input().split()]

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

main()

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

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

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

suuji = a*100 + b*10 + c

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

else:
    print("NO")

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

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

Solution (Python):
import sys
import numpy as np
from math import *
def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    rgb = int(input_raw[0])*100 + int(input_raw[1]) *10 + int(input_raw[2])
    if rgb % 4 == 0 :
        print 'YES'
    else:
        print 'NO'

if __name__ == '__main__':
    main()

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

Solution (Python):
rgb = [int(i) for i in input().split()]
num = 0
for i, n in enumerate(reversed(rgb)):
    num += n * (10 ** i)
if num % 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):
a, b, c = map(int, input().split())
d = a * 100 + b * 10 + c
if d % 4 == 0 :
    print ('YES')
else :
    print ('NO')

Solution (Python):


A = map(int, raw_input().split())



n=A[0]*100+A[1]*10+A[2]


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

Solution (Python):
nums = [int(x) for x in input().split()]
ans = nums[0]*100 + nums[1] * 10 + nums[2]

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

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

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

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

v = 100*r + 10*g + b
if v % 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):
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("".join(raw_input().split()))%4==0 else "NO"

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

n=a+b+c

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

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

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

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

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

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

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

Solution (Python):
if __name__ == '__main__':
    r, g, b = list(input().split())

    target = int(r + g + b)

    

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

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

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

Solution (Python):
Nums = raw_input().split()
prod = int(Nums[0]) * 100
prod += int(Nums[1]) * 10
prod += int(Nums[2])

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

num = 10*g + b

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

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

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

res = int(r + g + b)

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

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

a()

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

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

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

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

Solution (Python):
import sys

def main():
    line = sys.stdin.readline()
    lst = line.split()
    r = int(lst[0])
    g = int(lst[1])
    b = int(lst[2])

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

if __name__ == '__main__':
    sys.exit(main())

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

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

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

Solution (Python):


if __name__ == "__main__":
    num_list = input().split(" ")
    num = int("".join(num_list))

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

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

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

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

Solution (Python):


a = [int(i) for i in input().split()]

n = 100 * a[0] + 10 * a[1] + a[2]

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

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

number = r*100+g*10+b

if number % 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):
import sys
a, b, c = map(int, sys.stdin.readline().split())
print ["NO", "YES"][(b * 10 + c) % 4 == 0]

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

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

Solution (Python):


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

rgb = int(r + g + b)

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

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

Solution (Python):

r, g, b = list(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, raw_input().split())

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

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

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):
ss = input().split()
a = int(ss[0])*100 + int(ss[1]) * 10 + int(ss[2])
if(a%4 == 0) :
	print("YES")
else :
	print("NO")

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

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