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 unittest
from io import StringIO
import sys


def input():
    return sys.stdin.readline().rstrip()


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


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """4 3 2"""
        output = """YES"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """2 3 4"""
        output = """NO"""
        self.assertIO(input, output)


if __name__ == "__main__":
    
    resolve()

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

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

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

A = 100*r + 10*g + b

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

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

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

number = r * 100 + g * 10 + b

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

Solution (Python):

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

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

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

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

Solution (Python):
r,g,d =(int(x) for x in input().split())

num = 100 * r + g * 10 + d

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

Solution (Python):
import numpy as np
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 = 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=map(str,input().split())
n=int(r+g+b)
print('YES' if n%4 ==0 else 'NO')

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

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

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

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

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

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

Solution (Python):
n=int(input()[::2])
print("YES" if n&3==0 else "NO")

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

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

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

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):
r,g,b = map(int,open(0).read().split())

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

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

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

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

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

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

Solution (Python):

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

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

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

last_2digits = b + c

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

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

Solution (Python):
number = list(map(str, input().split(" ")))
N = "".join(number)
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):
print("YNEOS"[int("".join(list(input().split())))%4!=0::2])

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

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

Solution (Python):

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

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

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

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

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

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

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

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

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

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

Solution (Python):
s = input().replace(' ', '')

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

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    rgb = list(map(str, str(input().rstrip('\n')).split()))
    print("YES" if int("".join(rgb)) % 4 == 0 else "NO")


if __name__ == '__main__':
    slove()

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

Solution (Python):
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

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

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

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

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

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

Solution (Python):

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

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

Solution (Python):


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

if __name__ == "__main__":
    resolve()

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

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

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

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

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

A=10*g+b

if A%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):
import sys
import os
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, raw_input().split())
rgb = 100*r+10*g+b
if rgb%4 == 0:
  print('YES')
else:
  print('NO')

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

n = int(rgb)

if n%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())
rgb = 100 * r + 10 * g + b
if rgb % 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):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b,c=INTM()
    if (a*100+b*10+c)%4 == 0:
        print('YES')
    else:
        print('NO')
if __name__ == '__main__':
    do()

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

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

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

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

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

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


if __name__ == "__main__":
    resolve()

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

Solution (Python):

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


b = li[1] * 10 + li[2]

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

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

Solution (Python):

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

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

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

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


N=r+g+b


N=int(N)


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

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

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

solve()

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

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

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

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

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

n = r + g + b

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

Solution (Python):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
   
r,g,b=map(int,input().split())

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

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

Solution (Python):
print(["YES","NO"][int(input().replace(" ",""))%4!=0])

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().replace(" ",""))%4!=0::2])

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

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

Solution (Python):
print('YES'*(int(input()[::2])%4==0)or'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 = a * 100 + b * 10 + c
r = "YES" if s % 4 == 0 else "NO"
print(r)

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

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

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

Solution (Python):
r,g,b = map(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())


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

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

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

def main():
    s = int(input().strip().replace(" ", ""))

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


if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

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

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

num = int(r + g + b)

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

Solution (Python):
n = [int(_) for _ in input().split()]
if len(n) == 3 and all(1 <= item <= 9 for item in n):
    print('YES' if 0 == (100 * n[0] + 10 * n[1] + n[2]) % 4 else 'NO')
else:
    print('hoge!')

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

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

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

Solution (Python):
import sys
import copy
import  math
import bisect
from collections import *
from operator import itemgetter
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

Solution (Python):
import sys
import copy
import  math
import bisect
from collections import *
from operator import itemgetter
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

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

X = 100 * r + 10 * g + b

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

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

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

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

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

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

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

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

s = 100*r + 10*g + b

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
def main():
    r, g, b = input().split()
    n = int(r + g + b)
    if n % 4 == 0:
        return "YES"
    return "NO"


if __name__ == '__main__':
    print(main())

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

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

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

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

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

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

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

four = b+c

if (int(four))%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()
rgb = int(r+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())

value = r * 100 + g * 10 + b

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

num = r * 100 + g * 10 + b

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

Solution (Python):


def main():

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

if __name__== "__main__":
    main()

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

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

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

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

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

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

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

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

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

Solution (Python):

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

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