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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import string
import collections
from collections import Counter


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


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


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


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


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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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


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


if __name__ == '__main__':
    resolve()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

YES = "YES"  # type: str
NO = "NO"  # type: str


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


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  # type: int
    g = int(next(tokens))  # type: int
    b = int(next(tokens))  # type: int
    print(solve(r, g, b))

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

if __name__ == '__main__':
    #test()
    main()

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input().strip().split()
num = int(''.join(a))
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:
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(str, input().split())

s = int(a + b + c)

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b , c= map(int, input().split())

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

Submission status: Accepted

Solution code:
import sys
import math
import bisect

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

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


#############
# Constants #
#############

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

#############
# Functions #
#############

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

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

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

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

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

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

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

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

#############
# Main Code #
#############

a,b,c = inputIL()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# ABC064 A

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
r, g, b = map(str, input().split())
# 文字列の入力
#s = input()
#開業されたN個要素を受け付ける
#list = [input() for i in range(N)]
a = ("").join([r, g, b])
if int(a)%4==0:
    print("YES")
else:
    print("NO")

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy, copy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

r, g, b = MAP()

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy, copy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
x = list(map(int, input().split()))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

if __name__ == '__main__':

    ABC_64_A()

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

Submission status: Accepted

Solution code:
N = int(input().replace(' ', ''))
if N%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:

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

Submission status: Accepted

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

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


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

print(actual(r, g, b))

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
RGB = int(input().replace(' ', ''))
print('YES' if RGB % 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 = 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:
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 = input().split()
print("YES" if int(r+g+b) % 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:
print('YNEOS'[eval(input().replace(' ',''))%4>0::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
print("YNEOS"[int(input().replace(" ",""))%4>0::2])

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())
GB = int(g + b)

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

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

Submission status: Accepted

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

Submission status: Accepted

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


main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 1問目類題１
r,g,b = map(int, input().split())
if (10*g+b) % 4 == 0:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
print("YES" if (10*b+c)%4==0 else "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 (100*R+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:
#!/usr/bin/env python3

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

Submission status: Accepted

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

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

num = int(r+g+b)

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

Submission status: Accepted

Solution code:
from sys import stdin


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

Submission status: Accepted

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

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

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:
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=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())
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())

total = a*100+b*10+c

if total%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*1
if n%4==0:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r, g, b = input().split()
num = int(r + g + b)
if num % 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:
n = input().replace(" ","")

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
def resolve():
    # 整数 1 つ
    #n = int(input())
    # 整数複数個
    a, b, c = list(map(int, input().split()))
    # 整数 N 個 (改行区切り)
    #N = [int(input()) for i in range(N)]
    # 整数 N 個 (スペース区切り)
    #N = list(map(int, input().split()))
    # 整数 (縦 H 横 W の行列)
    #A = [list(map(int, input().split())) for i in range(H)]

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

resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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