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:
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:
import sys
r, g, b = map(int, sys.stdin.readline().split())

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

Submission status: Accepted

Solution code:
def solve():
    r, g, b = list(map(str, input().split(" ")))
    colors = [r, g, b]
    ans = "".join(colors)
    if int(ans) % 4 == 0:
        print("YES")
    else:
        print("NO")


solve()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print 'YES' if int(raw_input().replace(' ', '')) % 4 == 0 else '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:
#!/usr/bin/env python

r,g,b=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())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

tmp=r*100+g*10+b

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

Submission status: Accepted

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

x =10*g +b

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

Submission status: Accepted

Solution code:
a, b, c = [int (i) for i in raw_input ().split ()]
print ["NO", "YES"][(100 * a + 10 * b + c) % 4 == 0]

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
http://abc064.contest.atcoder.jp/tasks/abc064_a

"""
import sys
from sys import stdin
input = stdin.readline


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


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
_, g, b = map(int, raw_input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# step 1: read the three digits
a, b, c = input().split()

# step 2: compute the 3-digit number
n = int(a)*100 + int(b)*10 + int(c)

# step 3: check if the 3-digit number is divisible by 4
print("YES" if n % 4 == 0 else "NO")

Submission status: Accepted

Solution code:
def solution():
	a = raw_input()
	arr = a.split(' ')

	arr = int(arr[0]+arr[1]+arr[2])

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

solution()

Submission status: Accepted

Solution code:
x = input()
x = x.split(" ")

nums = []

for i in range(0,len(x)):
	nums.append(int(x[i]))

total = nums[0]*100+nums[1]*10+nums[2]

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

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

Submission status: Accepted

Solution code:
r, g, b = input().split()
print('YES' if int(g+b) % 4 == 0 else '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:
from collections import defaultdict
 
 
def main():
    s = input().replace(" ", "")
    print("YES" if int(s) % 4 == 0 else "NO")
 
 
if __name__ == '__main__':
    main()

Submission status: Accepted

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

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:
x = input().split()
num = x[0]+x[1]+x[2]
print('YES' if int(num)%4==0 else 'NO')

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
Z=[int(x) for x in input().split()]
a=100*Z[0]+10*Z[1]+Z[2]
if a%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
ans = "YES" if(num % 4 == 0) else "NO"
print(ans)

Submission status: Accepted

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

if n%4==0:
    print("YES")
else:
    print("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:
r, g, b = list(map(int, input().split(" ")))

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

Submission status: Accepted

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

import sys
from collections import deque

inputline = list(map(int, sys.stdin.readline().split()))

rgb = inputline[0] * 100 + inputline[1] * 10 + inputline[2]

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

Submission status: Accepted

Solution code:
num = input().split() 
temp = ''
for i in range(len(num)):
    temp = temp + num[i]
print( ['NO','YES'][int(temp)%4==0] )

Submission status: Accepted

Solution code:
cs = [ int(x) for x in input().split() ]
n = cs[0] * 100 + cs[1] * 10 + cs[2]
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:
# coding: utf-8

input = input().split()
r=int(input[0])*100
g=int(input[1])*10
b=int(input[2])
rgb=r+g+b

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(a): return "".join(list(map(str, a)))

r,g,b = rli()

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

Submission status: Accepted

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

cards = int(r + g + b)

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

else:
    print("NO")

Submission status: Accepted

Solution code:
r,g,b = list(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(" "))

if g % 2 ==0 and b % 4 ==0 or g%2 ==1 and b%4==2:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

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:
from collections import defaultdict


def main():
    s = input().replace(" ", "")
    print("YES" if int(s) % 4 == 0 else "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:
r,g,b = [int(i) for i in input().split()]
if (r*100+g*10+b)%4 == 0:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int("".join(input().split()))
print("YES" if n % 4 == 0 else "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:
#RGB card
import numpy as np
r,g,b = list(map(int, input().split()))
if((100*r+10*g+b)%4==0):
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
indata = [int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
import sys

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:
if __name__ == "__main__":
    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, raw_input().split())
if (b * 10 + c) % 4 == 0:
	print "YES"
else:
	print "NO"

Submission status: Accepted

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

import sys
import subprocess
import json
import time
import math
import re
import sqlite3

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = input().split()

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

while B > 4:
        B %= 4

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python

def solve():
    abc = input().split()
    s = ""
    for i in abc:
        s += i
    n = int(s)
    if n % 4 == 0:
        print('YES')
    else:
        print('NO')
    
        
if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r, g, b = 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,input().split())
s = r * 100 + 10 * g + b

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

else:
    print('NO')

Submission status: Accepted

Solution code:
a= raw_input().split()

sum = int(a[0])*100 + int(a[1])*10 + int(a[2])

if sum%4 == 0:
	print "YES"
else:
	print "NO"

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
numbers = [i for i in input().split()]
number = numbers[0] + numbers[1] + numbers[2]
number = int(number)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = raw_input().split(" ")
num=int(l[0])*100+int(l[1])*10+int(l[2])

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

Submission status: Accepted

Solution code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import math

r,g,b = map(int, sys.stdin.readline().rstrip().split())

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


exit(0)

Submission status: Accepted

Solution code:
x = input().split()

y = int(x[0]) * 100 + int(x[1]) * 10 + int(x[2])

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

Submission status: Accepted

Solution code:
i = input()
t = i.split()
num = int(t[0])*100 + int(t[1])*10 + int(t[2])
if num%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:
i = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

n = int(r + g + b)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC064A

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

raw = raw_input().split(" ")
num = int(raw[0]) * 100 + int(raw[1]) * 10 + int(raw[2])
if not (num % 4):
    print 'YES'
else:
    print 'NO'

Submission status: Accepted

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

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
print('YES' if (a * 100 + b * 10 + c) % 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:
# -*- coding: utf-8 -*-

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

a = 10*g + b

answer = a % 4

if answer == 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:
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:
def f(r, g, b):
    if (100 * r + 10 * g + b) % 4 == 0:
        return 'YES'
    else:
        return 'NO'

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

Submission status: Accepted

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

s=r*100+g*10+b

if s%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:
#coding: utf-8
r,g,b = map(int, raw_input().split(' '))
mod = (100 * r + 10 * g + b) % 4

if mod == 0:
	print 'YES'
else:
	print 'NO'

Submission status: Accepted

Solution code:
l = list(input())
if int(l[0]+l[2]+l[4])%4: print('NO')
else: print('YES')

Submission status: Accepted

Solution code:
rgb = input().split()
r = rgb[0]
g = rgb[1]
b = rgb[2]

check = int(r + g + b)

if check % 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:
r,g,b=[int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
"""
AtCoder Beginner Contest 064
A - RGB Cards
@author Ren Serizawa
"""

import sys
nums = [num for num in input().split(" ")]
num3digit = int(("").join(nums)) if ("").join(nums).isdigit() else -1
if num3digit < 0 or not len(nums) == 3:
    sys.stderr.write("Error: Invalid input\n")
    exit()
isMultipleOf4 = "YES" if num3digit % 4 == 0 else "NO"
print(isMultipleOf4)
exit()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [i for i in input().split()]

b = int(''.join(a))

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

Submission status: Accepted

Solution code:
x,y,z=raw_input().split()
if int(x+y+z)%4==0:
    print "YES"
else:
    print "NO"

Submission status: Accepted

Solution code:
a = input()

a = a.split()

r = int(a[0])
g = int(a[1])
b = int(a[2])

number = r * 100 + g * 10 + b

"""
print(a)
print(r)
print(g)
print(b)
print(number)
"""

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
a=a.split()

r=int(a[0])
g=int(a[1])
b=int(a[2])

x=100*r+10*g+b

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

Submission status: Accepted

Solution code:
import sys

input_file = 'a1.in'
# sys.stdin = open(input_file)


s = input().split()
t = int(''.join(s))

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

Submission status: Accepted

Solution code:
def read(): return list(map(int, input().split()))

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

Submission status: Accepted

Solution code:
# coding: utf-8
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:
print "YES" if int(raw_input().replace(" ", "")) % 4 == 0 else "NO"

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()


def main():
    r,g,b = LI()
    t = g*10+b
    if t % 4 == 0:
        return 'YES'

    return 'NO'


print(main())

Submission status: Accepted

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

Submission status: Accepted

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

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:
_,a,b=map(int,input().split());print(['NO','YES'][(a*10+b)%4==0])

Submission status: Accepted

Solution code:
import sys

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

    val = 100*r + 10*g + b

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

if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
from sys import stdin
ans = 'NO'
r,g,b = map(int,stdin.readline().split())
if (r*100 + g *10 + b) %4==0:
 ans = 'YES'
print ans

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
 
stdin = sys.stdin
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()


a, b, c = na()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

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

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

Submission status: Accepted

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

import sys
import os

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

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

Submission status: Accepted

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

num = 100 * r + 10  * g + b

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

Submission status: Accepted

Solution code:
l = map(int, raw_input().split())
v = 100*l[0] + 10*l[1] + l[2]

if v % 4 == 0:
    print "YES"
else:
    print "NO"

Submission status: Accepted

Solution code:
print("NO" if sum([int(i)*10**(2-t) for t,i in enumerate(input().split())])%4 else "YES")

Submission status: Accepted

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

Submission status: Accepted

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

import array
from bisect import *
from collections import *
import fractions
import heapq 
from itertools import *
import math
import re
import string

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=raw_input()

aa=int(a.replace(' ',''))

if aa/4*4==aa:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

ans = r * 100 + g * 10 + b

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input().split()
sum = int(N[0])*100 + int(N[1])*10 + int(N[2])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 28 21:42:33 2016

@author: you
"""

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

Submission status: Accepted

Solution code:
n = input()
tmp_n = n.split(" ")
num = int(tmp_n[0]+tmp_n[1]+tmp_n[2])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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


quit()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

#スペース区切りの整数の入力
r, g, b = map(int, raw_input().split())
#入力値の連結
x = str(r)+str(g)+str(b)

#4の倍数か否かの確認
if int(x)%4 == 0:
    print 'YES'
else:
    print'NO'

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
inputs = list(map(int, input().split(" ")))
R = inputs[0]
G = inputs[1]
B = inputs[2]

sum = R*100 + G*10 + B

if sum%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:
r, g, b = map(int, input().split())

num =r*100+g*10+b

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

ans = rgb[0] * 100 + rgb[1] * 10 + rgb[2]

if ans % 4 == 0:
    print ('YES')
else:
    print ('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:
def main():
    RGB = input()

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

main()

Submission status: Accepted

Solution code:



def main():
    r, g, b = [int(x) for x in raw_input().split()]

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

main()

Submission status: Accepted

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