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

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

Solution (Python):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

Solution (Python):

a = map(str,input().split())
ls = []
sm = ""
for i in a:
    sm += i
nm = int(sm)
if nm%4==0:
    print("YES")
else:
    print("NO")

Solution (Python):

import math,string,itertools,fractions,heapq,collections,re,array,bisect

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

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

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

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

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

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

Solution (Python):

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

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

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

n = 100*r + 10*g + b

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

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

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

Solution (Python):



def main():
    n = raw_input().replace(" ", '')
    n = int(n)
    if n % 4 == 0:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    main()

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


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

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

Solution (Python):
rgb = [str(_) for _ in input().split()]
print('YES') if int(''.join(rgb))%4 == 0 \
    else print('NO')

Solution (Python):
import sys
import math
import collections
import itertools
import array
import inspect


sys.setrecursionlimit(1000000)



def chkprint(*args):
    names = {
        id(v): k
        for k, v in inspect.currentframe().f_back.f_locals.items()
    }
    print(', '.join(
        names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))



def to_bin(x):
    return bin(x)[2:]


def li_input():
    return [int(_) for _ in input().split()]


def gcd(n, m):
    if n % m == 0:
        return m
    else:
        return gcd(m, n % m)


def gcd_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = gcd(v, L[i])

    return v


def lcm(n, m):
    return (n * m) // gcd(n, m)


def lcm_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = lcm(v, L[i])

    return v



def wfs_d(D, N, K):
    """
    D: 隣接行列(距離付き)
    N: ノード数
    K: 始点ノード
    """

    dfk = [-1] * (N + 1)
    dfk[K] = 0

    cps = [(K, 0)]
    r = [False] * (N + 1)
    r[K] = True
    while len(cps) != 0:
        n_cps = []
        for cp, cd in cps:
            for i, dfcp in enumerate(D[cp]):
                if dfcp != -1 and not r[i]:
                    dfk[i] = cd + dfcp
                    n_cps.append((i, cd + dfcp))
                    r[i] = True

        cps = n_cps[:]

    return dfk



def dfs_d(v, pre, dist):
    """
    v:  現在のノード
    pre: １つ前のノード
    dist: 現在の距離

    以下は別途用意する
    D: 隣接リスト(行列ではない)
    D_dfs_d: dfs_d関数で用いる，始点ノードから見た距離リスト
    """

    global D
    global D_dfs_d

    D_dfs_d[v] = dist

    for next_v, d in D[v]:
        if next_v != pre:
            dfs_d(next_v, v, dist + d)

    return


def sigma(N):
    ans = 0
    for i in range(1, N + 1):
        ans += i
    return ans


class Combination:
    def __init__(self, n, mod):

        g1 = [1, 1]
        g2 = [1, 1]
        inverse = [0, 1]
        for i in range(2, n + 1):
            g1.append((g1[-1] * i) % mod)
            inverse.append((-inverse[mod % i] * (mod // i)) % mod)
            g2.append((g2[-1] * inverse[-1]) % mod)
        self.MOD = mod
        self.N = n
        self.g1 = g1
        self.g2 = g2
        self.inverse = inverse

    def __call__(self, n, r):
        if (r < 0 or r > n):
            return 0
        r = min(r, n - r)
        return self.g1[n] * self.g2[r] * self.g2[n - r] % self.MOD




dp = None


def main():
    r, g, b = li_input()
    n = r * 100 + g * 10 + b

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


main()

Solution (Python):
i=int(input().replace(" ", ""))
print("YES" if i % 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):
from functools import reduce
num = int(reduce(lambda a,b:a+b, input().split(), ""))
print('YES' if num%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())
print('YES' if ((10 * g + b) % 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()
ans = g+b
print('YES' if int(ans)%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 = 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())
if (100*r+10*g+b) % 4 == 0 :
    print("YES")
else :
    print("NO")

Solution (Python):
RGB = list(map(str, input().split()))
rgb = "".join(RGB)
if (int(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):
msg=input().split()
number=int(msg[0])*100+int(msg[1])*10+int(msg[2])
if number%4==0:
  print("YES")
else:
  print("NO")

Solution (Python):


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

if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
red,green,brue = map(int,input().split())
total = 100*red+10*green+brue 
print("YES" if total % 4 == 0 else "NO")

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

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

Solution (Python):

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

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


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

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


rgb = int(input().replace(" ", ""))

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

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

Solution (Python):
x,y,z=[int(x) for x in str(input()).split()]
a=100*x+10*y+z
if a%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):
line=input().split(" ")
a=int(line[0])
b=int(line[1])
c=int(line[2])
if (b*10+c)%4==0:
	print("YES")
else:
	print("NO")

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

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

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

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

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

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

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

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

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

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

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

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

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

number = r+g+b

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

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

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

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

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

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

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

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

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

Solution (Python):
e=input()
f=(int(e[2])*10+int(e[4]))%4==0
print(['NO','YES'][f])

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

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

a = str(a)
b = str(b)
c = str(c)

num = str((a+b+c))


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

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

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

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

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

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

a = r*100+g*10+b


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

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

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

Solution (Python):
ina,inb,inc = input().split()
if int(ina+inb+inc)%4 == 0:
  print("YES")
else:
  print("NO")

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

temp = 100*r + 10*g + b



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

else:
    print("NO")

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

Solution (Python):
import math
import sys

def getinputdata():

    
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

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

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

Solution (Python):





if __name__ == '__main__':
    colors = list(map(str, input().split()))
    number = int(''.join(colors))

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

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

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

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

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

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

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

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

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

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

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

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

if (10*g+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 = [i for i in input().strip().split()]
x = int(r+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(str, input().split())

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

Solution (Python):





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

    N = 100*A + 10*B + C
    ok = N % 4 == 0
    print("YES" if ok else "NO")

if __name__ == "__main__": main()

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

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

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

Solution (Python):
n = input().split()
num = ''
for c in n:
    num += c

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

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

Solution (Python):
print['YES','NO'][int(raw_input()[::2])%4>0]

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

if((idx[0] * 100 + idx[1] * 10 + idx[2]) % 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):
import sys
r, g, b = map(int, sys.stdin.readline().split())

if (r * 100 + g * 10 + b) % 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","YES"][int(input().replace(" ",""))%4==0])

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


solve()

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

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

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

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

Solution (Python):
print 'YES' if int(raw_input().replace(' ', '')) % 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)

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

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

X = 100*r + 10*g + b

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

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

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

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

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

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

Solution (Python):


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

tmp=r*100+g*10+b

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

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

x =10*g +b

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

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

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

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

Solution (Python):

"""
http://abc064.contest.atcoder.jp/tasks/abc064_a

"""
import sys
from sys import stdin
input = stdin.readline


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


if __name__ == '__main__':
    main(sys.argv[1:])

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

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

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

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

Solution (Python):

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


n = int(a)*100 + int(b)*10 + int(c)


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

Solution (Python):
def solution():
	a = raw_input()
	arr = a.split(' ')

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

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

solution()

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

nums = []

for i in range(0,len(x)):
	nums.append(int(x[i]))

total = nums[0]*100+nums[1]*10+nums[2]

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

Solution (Python):

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

Solution (Python):



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

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

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

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

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

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

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


if __name__ == "__main__":
    main()

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

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

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

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