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

















import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

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

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

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

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

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

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

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

s = r+g+b
s = int(s)

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

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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

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

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

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

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

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

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

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    r, g, b = map(int, read().split())

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

    return


if __name__ == '__main__':
    main()

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

if (2*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):
if int(''.join(open(0).read().split()))%4:
    print('NO')
else:
    print('YES')

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

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

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

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

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

x = 100*r + 10*g + b
mod = x%4

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

Solution (Python):
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 = map(int, input().split())

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

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

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

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

s = 100*r + 10*g + b

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

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

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

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

Solution (Python):
rgb=input()
print("YES" if int(rgb[::2])%4==0 else "NO")

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

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

c = 100*r + 10*g + b

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

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

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

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

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

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

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

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

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

xyz = x+y+z

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

Solution (Python):
_,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())

aa = 10 * g + b
if aa % 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==0])

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

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

Solution (Python):
s = input()

num = int(''.join(s.split()))

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):
s = ''.join(list(input().split()))

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

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

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

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

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

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

d = a + b + c 

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

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

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

Solution (Python):
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

a = int(rr().replace(' ',''))
print('YNEOS'[a%4!=0::2])

Solution (Python):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

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

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


input_ = input().split()

rgb = input_[0] + input_[1] + input_[2]
rgb = int(rgb)

if rgb % 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):
print('YNEOS'[int(input()[::2])%4>0::2])

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

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

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

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

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

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

Solution (Python):
import bisect, collections, copy, heapq, itertools, math, string, sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = float('inf')
def I(): return int(input())
def F(): return float(input())
def SS(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LSS(): return input().split()

def resolve():
    r, g, b = LI()

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

if __name__ == '__main__':
    resolve()

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

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

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

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

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

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

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

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


print("YES" if int("{}{}{}".format(A, B, C)) % 4 == 0 else "NO")

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

Solution (Python):
r,g,b=[int(i) for i in 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())

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

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

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

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

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

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

Solution (Python):
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
r, g, b = M()
temp = str(r) + str(g) + str(b)
rgb = int(temp)
if rgb % 4 == 0:
    print('YES')
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):
import sys
r,g,b = map(int,input().split())
if r < 0 or g < 0 or b < 0 or r > 9 or g > 9 or b > 9:
    sys.exit()

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

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

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

num_mod = num % 4

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

Solution (Python):
import sys
buf = sys.stdin.buffer


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


if __name__ == "__main__":
    main()

Solution (Python):
def actual(r, g, b):
    rgb = 100 * r + 10 * g + b

    if rgb % 4 == 0:
        return 'YES'

    return 'NO'

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

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

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

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

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

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

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

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

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

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

N=int(r+g+b)

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

Solution (Python):
print('NYOE S'[int(''.join(list(input().split())))%4==0::2])

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

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

Solution (Python):
n = ''.join(list(map(str,input().split())))
if int(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] = list(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())

ans = 10*g+b

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

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

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

r = a*100 + b*10 + c

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

Solution (Python):
import sys

input = sys.stdin.readline


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

    num = int("".join(map(str, [r, g, b])))

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


if __name__ == "__main__":
    main()

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

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

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


RGB =  100*r + 10*g + b 

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

Solution (Python):
def resolve():
    a, b, c = map(int, input().split())
    x = b*10 + c

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
three =  list(map(int, input().split()))
r = three[0]
g = three[1]
b = three[2]
g = str(g)
b = str(b)
gb = g + b
gb = int(gb)

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

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

rgb=100*r+10*g+b

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

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

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

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

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

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

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

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

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

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

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

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

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


if __name__ == "__main__":
    main()

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

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

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

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

a = (10*g + b) % 4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

N=list(map(int,input().split()))
num=100*N[0]+10*N[1]+N[2]
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(int,input().split())

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

Solution (Python):
print("NO" if sum([int(x)*int(y) for x, y in zip(input().split(), [100, 10, 1])])%4 else "YES")

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()
factor=g+b
gb=int(factor)

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

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

Solution (Python):


import sys






























def main():
    mod = 1000000007                
    inf = float('inf')              
    
    sys.setrecursionlimit(10**6)    
    def input(): return sys.stdin.readline().rstrip()
    def ii():    return int(input())
    def mi():    return map(int, input().split())
    def mi_0():  return map(lambda x: int(x)-1, input().split())
    def lmi():   return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():    return list(input())
    
    
    a, b, c = input().split()
    print('YES') if int(a+b+c) % 4 == 0 else print('NO')


if __name__ == "__main__":
    main()

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

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

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

num = int(a+b+c)

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

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

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

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

else:
    print("NO")

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

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

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

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