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-----
4 3 2

-----Sample Output-----
YES

432 is a multiple of 4, and thus YES should be printed.

Difficulty: introductory

Starter code:

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

l = ''.join(str(n) for n in rgb)
if int(l)%4 == 0:
    print('YES')
else:
    print('NO')

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


# A - RGB Cards
# https://atcoder.jp/contests/abc064/tasks/abc064_a

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

i = int(r + g + b)
result = 'NO'

if i % 4 == 0:
    result = 'YES'

print(result)


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


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

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

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

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

answer = r * 100 + g * 10 + b

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

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

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

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

a, b, c = input().split()
n = int(a+b+c)

print('NO') if n % 4 else print('YES')

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

# 064_a
r,g,b=map(int,input().split())
num=int(str(r)+str(g)+str(b))
if (1<=r and r<=9) and (1<=g and g<=9) and(1<=b and b<=9):
    if num % 4 == 0:
        print('YES')
    else:
        print('NO')

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


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

# A - RGB Cards

# 整数r,g,bを入力し、左から並べてできた3桁の整数が4の倍数であるか判定する


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

answer = int(r + g + b)

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


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

# AtCoDeer君は、赤、緑、青色のカードを持っています。
# それぞれのカードには1以上9以下の整数が書かれており、赤色のカードにはr、緑色のカードにはg、青色のカードにはbが書かれています。
# 3つのカードを左から順に赤、緑、青色の順に並べ、左から整数を読んだときにこれが4の倍数であるか判定しなさい。

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

if 1 <= r <=9 and 1 <= g <=9 and 1 <= b <=9 and (100 * r + 10 * g + b) %   4 == 0: # rを100倍、gを10倍にして、それぞれ100の位、10の位とする。
    print('YES')

else:
    print('NO')

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

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

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


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

sumstr = r + g + b
sumint = int(sumstr)

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

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


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

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

# 文字列として入力
r, g, b = map(str, input().split())

# 連結
RGB = r + g + b

# 整数に戻して4で割る
if int(RGB) % 4 == 0:
    print('YES')
else:
    print('NO')

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

N = int("".join(map(str,input().split())))
print(("NO","YES")[N % 4 == 0])

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

a,b,c=[int(s) for s in input().split()]
if (10*b+c)%4==0:
  print('YES')
else:
  print('NO')

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

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


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

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

# 入力
r, g, b = list(map(int, input().split()))

# 出力
if 1 <= r and g and b <= 9:
    if ((r * 100) + (g * 10) + b) % 4 == 0:
        print('YES')
    else:
        print('NO')


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

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

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

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

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

# 3枚のカードを並べた3桁の整数が4の倍数か

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

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

num = input().replace(' ', '')

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


import sys, math
from itertools import combinations as c, product as p
from collections import deque
sys.setrecursionlimit(10**9)
INF = float('inf')
MOD = 10**9 + 7
#MOD = 998244353


def si(): return input()
def ii(): return int(input())
def fi(): return float(input())
def lstr(): return input().split()
def lint(): return list(map(int, input().split()))
def lintdec(): return list([int(x) - 1 for x in input().split()])
def lnstr(n): return [input() for _ in range(n)]
def lnint(n): return [int(input()) for _ in range(n)]
def lint_list(n): return [lint() for _ in range(n)]



############################################################
print(('NO' if int(''.join(lstr())) % 4 else 'YES'))


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

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

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


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


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

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

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

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

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


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

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

number = int(r + g + b)

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

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

result = int("{}{}{}".format(r,g,b))
if result % 4 == 0:
    print('YES')
else:
    print('NO')

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

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

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

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

ans = int(r+g+b)

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

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

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

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

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

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


s = 100*r+10*g+b

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

rgb=list(input().split())
l=int(''.join(rgb))
print("NO" if l%4 else "YES")

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

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

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

ans = int(r) * 100 + int(g) *10 + int(b)

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

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

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

def __starting_point():
    iroha()


__starting_point()

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

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

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

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

n = ''

for s in input().split():
   n += s

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

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


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


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

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

# スペース区切りの整数の入力
a, b, c = input().split()
number = int(a + b + c)
if number % 4 == 0:
  print("YES")
else:
  print("NO")

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

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


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

a=input().split()
b=''.join(a)

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

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

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

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

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

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

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

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

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

ans = int(r+g+b)

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

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

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


#n = int(input())
r, g, b = list(map(str, input().split()))
#al = list(map(int, input().split()))
#al=[list(input()) for i in range(n)]

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


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


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

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


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

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


# AtCoDeer君は、赤、緑、青色のカードを持っています。
# それぞれのカードには 1 以上 9 以下の整数が書かれており、
# 赤色のカードには r、緑色のカードには g、
# 青色のカードには b が書かれています。
# 3つのカードを左から順に赤、緑、青色の順に並べ、
# 左から整数を読んだときにこれが 4の倍数であるか判定しなさい。

# 制約
# 1 ≦ r, g, b ≦ 9

# 標準入力から r, g , b の値を取得する
r, g, b = list(map(int, input().split()))

# 3桁の数値（agbと並べた数値）が 4の倍数かを判定し、結果を出力する
input_rgb = r * 100 + g * 10 + b
result = "ret"

if input_rgb % 4 == 0:
    result = "YES"
else:
    result = "NO"

print(result)


'''
abc064 A - RGB Cards
https://atcoder.jp/contests/abc064/tasks/abc064_a
'''

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


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

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

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

#   AtCoder abc064 a
#   ストレッチ課題

#   入力
r, g, b = list(map(int, input().split()))

#   処理
answer = r * 100 + g *10 + b

#   判定
if (answer % 4) == 0:
    print("YES")
else:
    print("NO")


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

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

a = r + g + b

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

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

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

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


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