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.



Sample input:
4 3 2


Sample output:
YES

Submission status: Accepted

Solution code:
listS = list(map(str, input().split()))
if int(listS[0]+ listS[1]+ listS[2])%4==0:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8
print(["NO", "YES"][int(input().replace(" ", "")) % 4 == 0])

Submission status: Accepted

Solution code:
a = list(map(int,(input().split())))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

sum = 100 * r + 10 * g + b

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

else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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


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


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding = utf-8 -*-
r, g, b = map(int, input().split())
if (r*100 + g*10 + b)%4 == 0 :
    print("YES")
else :
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

n = 100*r + 10*g + b

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# vim: set fileencoding=utf-8:


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(1000000)


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


# Binary converter
def to_bin(x):
    return bin(x)[2:]


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


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


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

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

    return v


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


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

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

    return v


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

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

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

        cps = n_cps[:]

    return dfk


# Depth First Search (+Distance)
def dfs_d(v, pre, dist):
    """
    v:  現在のノード
    pre: １つ前のノード
    dist: 現在の距離

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

    global D
    global D_dfs_d

    D_dfs_d[v] = dist

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

    return


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


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

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

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


# --------------------------------------------

dp = None


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

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


main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from functools import reduce
num = int(reduce(lambda a,b:a+b, input().split(), ""))
print('YES' if num%4 == 0 else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding:utf-8
n=[int(i) for i in input().split()]
n[0]=100*n[0]+10*n[1]+n[2]
if(n[0]%4==0):
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y,z=[int(x) for x in str(input()).split()]
a=100*x+10*y+z
if a%4==0:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

number = r+g+b

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
rgb = list(input().split())
if int(''.join(rgb[1:3])) % 4 == 0:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
#スペース区切りの整数の入力
r,g,b = map(int,input().split())

a = r*100+g*10+b

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
R, G, B = input().split()
print("YES" if int(R+G+B)%4==0 else "NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(str, input().split()))
n = ''
for i in a:
    n += i
if int(n)%4==0:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = list(input().split())
num = int("".join(num))


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

Submission status: Accepted

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

Submission status: Accepted

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

temp = 100*r + 10*g + b

#print(temp)

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

else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

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

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

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

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# AtCoder Beginner Contest
# Problem A

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = input().split()
print(['NO', 'YES'][int(c[1]+c[2]) % 4 is 0])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r,g,b = [i for i in input().strip().split()]
x = int(r+g+b)
if x%4==0:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-



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

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

if __name__ == "__main__": main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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