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 math
import string
import collections
from collections import Counter


def readints():
    return list(map(int, input().split()))


def nCr(n, r):
    return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))


def has_duplicates2(seq):
    seen = []
    for item in seq:
        if not(item in seen):
            seen.append(item)
    return len(seq) != len(seen)


def divisor(n):
    divisor = []
    for i in range(1, n+1):
        if n % i == 0:
            divisor.append(i)
    return divisor



dx = [-1, -1, -1, 0, 0, 1, 1, 1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]
n = readints()
if (n[0]*100+n[1]*10+n[2]) % 4 == 0:
    print('YES')
else:
    print('NO')

Solution (Python):
import numpy as np
import scipy.sparse as sps
import scipy.misc as spm
import collections as col
import functools as func
import itertools as ite
import fractions as frac
import math as ma
import cmath as cma
import copy as cp
import sys
def sinput(): return sys.stdin.readline().strip()
def iinput(): return int(sinput())
def imap(): return map(int, sinput().split())
def fmap(): return map(float, sinput().split())
def iarr(n=0):
    if n: return [0 for _ in range(n)]
    else: return list(imap())
def farr(): return list(fmap())
def sarr(n=0):
    if n: return ["" for _ in range(n)]
    else: return sinput().split()
def barr(n): return [False for _ in range(n)]
sys.setrecursionlimit(10**7)
MOD = 10**9 + 7; EPS = sys.float_info.epsilon
PI = np.pi; EXP = np.e; INF = np.inf

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


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


if __name__ == '__main__':
    resolve()

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

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

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

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

Solution (Python):

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

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

Solution (Python):

import sys

YES = "YES"  
NO = "NO"  


def solve(r: int, g: int, b: int):
    return YES if int(str(''.join(map(str, [r, g, b])))) % 4 == 0 else NO



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

def test():
    import doctest
    doctest.testmod()

if __name__ == '__main__':
    
    main()

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

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

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

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

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

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

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

s = int(a + b + c)

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

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

Solution (Python):

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

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

Solution (Python):
import sys
import math
import bisect

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

if __name__ == "__main__":
    main()

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

rgb = int(input().replace(' ', ''))
print(['NO', 'YES'][rgb % 4 == 0])

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

Solution (Python):






import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache






MOD = 10**9+7
INF = float('inf')






def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]


def inv(n): return pow(n, MOD-2, MOD)


kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret


def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr


def lcm(a, b):
    return a * b // gcd (a, b)





a,b,c = inputIL()

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

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

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

Solution (Python):
def main():
    r, g, b = input().split()
    rgb = int("{}{}{}".format(r, g, b))
    if rgb % 4 == 0:
        ans = 'YES'
    else:
        ans = 'NO'

    print(ans)


if __name__ == "__main__":
    main()

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

if int(value)%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(''.join(input().split()))
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):


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




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

Solution (Python):
r, g, b = input().split()
a = int(r + g + b)
if a % 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):
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, groupby
from operator import itemgetter, mul
from copy import deepcopy, copy
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
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()

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

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, groupby
from operator import itemgetter, mul
from copy import deepcopy, copy
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
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()
print("YES" if (10*g+b)%4 == 0 else "NO")

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

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

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

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

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

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

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

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

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

Solution (Python):

import sys
import math
from bisect import bisect_left, bisect_right, insort_left, insort_right
from collections import defaultdict, deque, Counter
from copy import deepcopy
from fractions import gcd
from functools import lru_cache, reduce
from heapq import heappop, heappush
from itertools import accumulate, groupby, product, permutations, combinations, combinations_with_replacement
from math import ceil, floor, factorial, log, sqrt, sin, cos
from operator import itemgetter
from string import ascii_lowercase, ascii_uppercase, digits
sys.setrecursionlimit(10**6)
rs = lambda: sys.stdin.readline().rstrip()
ri = lambda: int(rs())
rf = lambda: float(rs())
rs_ = lambda: [_ for _ in rs().split()]
ri_ = lambda: [int(_) for _ in rs().split()]
rf_ = lambda: [float(_) for _ in rs().split()]
INF = float('inf')
MOD = 10 ** 9 + 7

print('YES' if int(''.join(rs_())) % 4 == 0 else 'NO')

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

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

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

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

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

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

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

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

if __name__ == '__main__':

    ABC_64_A()

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

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

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

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

Solution (Python):

r, g, b = input().split()
A = "{}{}{}".format(r,g,b)
print("YES" if int(A)%4 == 0 else "NO")

Solution (Python):
def actual(r, g, b):
    num = int(r+g+b)

    if num % 4 == 0:
        return 'YES'
    else:
        return 'NO'


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

print(actual(r, g, b))

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

if __name__ == '__main__':
    main()

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

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

ans = r * 100 + g * 10 + b

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

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

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

Solution (Python):
print('YNEOS'[eval(input().replace(' ',''))%4>0::2])

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

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

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

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

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

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

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

s=int(str(a)+str(b)+str(c))

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

Solution (Python):
print("YNEOS"[int(input().replace(" ",""))%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):
r,g,b = map(str,input().split())
GB = int(g + b)

if GB%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):
s = input().replace(' ','')
print('NO' if int(s)%4 else '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
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections
MOD = 10**9 + 7

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

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


main()

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

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

Solution (Python):

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

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

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

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

if (100*R+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 = input().split()
if int(r+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(str,input().split())
ans = int(r+g+b)

if ans % 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):

def main():
    t = list(map(str, input().split()))
    n = int(''.join(t))
    ans = 'YES' if n % 4 == 0 else 'NO'
    print(ans)


if __name__ == '__main__':
    main()

Solution (Python):
r, g, b = map(int, input().split())
a = str(r) + str(g) + str(b)
if int(a)%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):
from sys import stdin


if __name__ == "__main__":
    _in = [_.rstrip() for _ in stdin.readlines()]
    r,g,b = _in[0].split(' ')  
    
    TF = 'YES' if int(r+g+b)%4==0 else 'NO'
    
    print(TF)

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

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

total = a*100+b*10+c

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

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

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

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

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

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

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

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

Solution (Python):
n = input().replace(" ","")

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
from math import floor, ceil
from operator import itemgetter
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]
inf = 10**17
mod = 10**9 + 7

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

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

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

resolve()

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

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

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

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

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

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 (10*g+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())
a=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):


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

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

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

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


if '__main__' == __name__:
    resolve()

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

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

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

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

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

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

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

A = a*100
B = b*10
C = A + B + c

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

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

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

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

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

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

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

Solution (Python):
from sys import stdin

data = stdin.readline().rstrip().split()

total = 100 * int(data[0]) + 10 * int(data[1]) + int(data[2])
if total % 4 == 0:
    print("YES")
else:
    print("NO")

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

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

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

A = 10*g + b

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

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

A=10*g+b

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

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

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

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

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

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

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

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