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: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
l=list(map(int,input().split()))
l="".join([int(n) for n in l])

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

Submission status: Runtime Error

Solution code:
import numpy as np
# 参加人数を入力する
N = int(input())
# レートを入力する
a = list(map(int, input().split()))
# ndarray型に変換
arr_a = np.array(a)
# 3200未満のレートを持つ人について、色の種類数を設定する
under3200 = 0
# 色ごとのレートの下限と上限を設定
lower = 1
upper = 399
# 上限が3200未満である限り繰り返す
while upper < 3200:
    # 範囲内のレートを持つ人がいる場合、色の種類数を増やす
    if len(arr_a[(arr_a  >= lower) & (arr_a <= upper)]) != 0:
        under3200 += 1
    # 下限と上限を更新する
    lower = upper + 1
    upper += 400
# 3200を超えるレートを持つ人の数を数える
over3200 = len(arr_a[arr_a >= 3200])

# 色の種類数の最小値について
if under3200 != 0:
    under3200
else:
    min_color = 1
# 色の種類数の最大値について
max_color = under3200 + over3200
# 結果を出力する
print("{} {}".format(min_color, max_color))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding: utf-8
input = input().split()
r = input[0]
g = input[1]
b = input[2]
x = r+g+b
if x%4==0:
  print('YES')
else:
  print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

rgb = int(input().strip(' '))

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

else:
    print('NO')

Submission status: Runtime Error

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

rgb = int(input().join())

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

else:
    print('NO')

Submission status: Runtime Error

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

rgb = int(input().join())

if rgb % 4:
    print('YES')

else:
    print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
N=int(input())
a=list(map(int,input().split()))
rate=[400,800,1200,1600,2000,2400,2800,3200]
a.sort()
answer=0
counter=0
i=0
j=0
while i<N:
    if a[i]>=rate[j]:
        j+=1
    else:
        answer+=1
        while i<N and a[i]<rate[j]:
            i+=1
        j+=1
    if i<N and j==8:
        counter+=N-i
        break
print(max(answer,1),answer+counter)

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

n = r+b+g
flg = "No"
if n%4 == 0:
    flg = "Yes"
    
print(flg)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
r = int(input("r is :"))
g = int(input("g is :"))
b = int(input("b is :"))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
r=int(input())
g=int(input())
b=int(input())
a=100*r+10*g+b

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

Submission status: Runtime Error

Solution code:
r,g,b=input()
if (100*r+10*g+b)/4==0:
	print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
strList = [input().split()]
rgb = int(join(strList))
if rgb % 4 == 0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a  = ''.join(list(map(input().split())))

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

Submission status: Runtime Error

Solution code:
a  = ''.join(list(map(input().split())))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

print(["error", A + B] [A + B < 10])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding:UTF-8
work = input().split(" ")
r = int(work[0])
b = int(work[1])
g = int(work[2])
num = r*100 + b*10 +c
if(num % 4 == 0):
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
# 出力
if 100*a+10*b+c%4 == 0:
	print "YES"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = ""
for i in range(3):
  a = input()
  s += a
if eval(s) % 4 == 0:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

else:
  return 'NO'

Submission status: Runtime Error

Solution code:
import sys

args = sys.argv
r = int(args[1])
g = int(args[2])
b = int(args[3])

mul = r*100 + g*10 + b

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

Submission status: Runtime Error

Solution code:
import sys

args = sys.argv
r = int(args[1])
g = int(args[2])
b = int(args[3])

mul = r*100 + g*10 * b

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
r = int(input(""))
g = int(input(""))
b = int(input(""))

r = r * 100
g = g * 10
b = b * 1

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main(int argc, char const *argv[]){
	int r,g,b;
	cin >> r >> g >> b;
	if((100 * r + 10 * g + b) % 4 == 0)	cout << "YES\n" << endl;
	else puts("NO\n");
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))
colored = [0,0,0,0,0,0,0,0]
god = 0
for i in a:
  if i >= 3200:
    god += 1
  else:
    colored[i // 400] += 1
color = 8 - colored.count(0)
if color == 0:
  print(1,god)
else:
  print(color, color+god)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
count = 0
for i in s:
    if int(i) == 1:
        count += 1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
r = int(input())
g = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
import numpy as np
N = int(input())
a = list(map(int, input().split()))

d = np.arange(0, 3600, 400)
c = []

for i in range(N):
	for j in range(len(d)-1):
		if d[j] <= a[i] < d[j + 1]:
			c.append(j)
	if a[i] >= 3200:
		c.append(8)

import collections
c_dict=collections.Counter(c)

s_val, s_count=zip(*c_dict.most_common())
nana_ika = [x for x in s_val if x < 8]

if not 8 in s_val:
	print(len(nana_ika), len(nana_ika))

else:
	if len(nana_ika) == 0:
		print(1, c_dict[8])
	elif 8 - len(nana_ika) > c_dict[8]:
		print(len(nana_ika), len(nana_ika) + c_dict[8])
	elif 8 -len(nana_ika) <= c_dict[8]:
		print(len(nana_ika), 8)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int,input().split()))
a.sort()
print(s[-1]-s[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
r=input(input r:)
g=input(input g:)
b=input(input b:)

s=100*r+10*g+b

def abcd(r,g,b):
  p=10*g+b
  if p%4=0:
    return "YES"
  else:
    return "NO"

print("Can {} be divided by 4?---{}.".format(s,abcd(r,g,b))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
l=map(raw_input().split())
a=int(l[0])
b=int(l[1])
c=int(l[2])
d=a*100+b*10+c
if d==0:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
l = map(int, raw_input().split())
a=int(l[0])
b=int(l[1])
c=int(l[2])
d=a*100+b*10+c
if d==0:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <stdio.h>
int main()
{
  int r;
  int g;
  int b;
  scanf("%d %d %d",&r,&g,&b);
  int c=r*100+g*10+b;
  if (c%4==0)
  {
    printf("%s\n","YES");
  }
  else
  {
    printf("%s\n","NO");
  }
}

Submission status: Runtime Error

Solution code:
#include <stdio.h>
int main()
{
  int r;
  int g;
  int b;
  char word1 = YES;
  char word2 = NO;
  scanf("%d %d %d",&r,&g,&b);
  int c=r*100+g*10+b;
  if (c%4==0)
  {
    printf("%c\n",word1);
  }
  else
  {
    printf("%d\n",word2);
  }
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

if n%4 == 0:print("Yes")
else:print("No")

Submission status: Runtime Error

Solution code:
c = list(map(int,input().split()))
a = reduce((lambda x , y: x * y),c)
if a%4 == 0:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
c = list(map(int,input().split()))
a = reduce(lambda x , y: x * y),c)
if a%4 == 0:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
c = list(map(int,input().split()))
print(reduce(lambda x , y: x * y),c)

Submission status: Runtime Error

Solution code:
N=int(input())
 
flag=[0]*8
 
a=list(map(int,input().split()))
 
count=0
 
for i in range(N):
 if 1<=a[i]<=399:
  flag[0]=1
 if 400<=a[i]<=799:
  flag[1]=1
 if 800<=a[i]<=1199:
  flag[2]=1
 if 1200<=a[i]<=1599:
  flag[3]=1
 if 1600<=a[i]<1999:
  flag[4]=1
 if 2000<=a[i]<2399:
  flag[5]=1
 if 2400<=a[i]<2799:
  flag[6]=1
 if 2800<=a[i]<3199:
  flag[7]=1
 if 3200<=a[i]:
  count+=1
 
print(min(sum(flag),1),sum(flag)+count)

Submission status: Runtime Error

Solution code:
print('YES' if int(input())%500<=int(input()) else 'NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import collections

n = int(input())
a = [int(i) for i in input().split()]

d = collections.defaultdict(int)

for i in a:
    i_ = i // 400
    d[i_] += 1

if 8 in d:
    min_ = max(len(d) - 1, 1)
    max_ = min(len(d) + d[8] - 1, 8)

else:
    min_ = len(d)
    max_ = len(d)

print(min_, max_)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
# coding: utf-8

c = input()
c = int(''.join(c))
if c % 4 == 0:
	print('Yes')
else:
	print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
import sys

a = int(sys.argv[1])

an = a % 4 == 0 ? "YES" : "NO"
  
print(an)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
number=int(input());
if number<1000&&number>110&&number%4==0&&number%100!=0&&number%10!=0:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
n=input()
a=list(map(int,input().split()))
a.sort()
print(a[-1]-a[0])

Submission status: Runtime Error

Solution code:
a = int(input().rstrip())
b = [ int(i) for i in input().split() ]
print(max(b)-min(b))

Submission status: Runtime Error

Solution code:
n = input()
m = [ int(x) for x in input().split() ]

i = max(m)
j = min(m)

print( i - j )

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
a=[int(i) for i in input().split()]
b,c,d,e,f,g,h,j,k=0,0,0,0,0,0,0,0,0
for i in range(N):
 if (a[i]<400):
  b=1
 elif (a[i]<800):
  c=1
 elif ([i]<1200):
  d=1
 elif (a[i]<1600):
  e=1
 elif (a[i]<2000):
  f=1
 elif ([i]<2400):
  g=1
 elif (a[i]<2800):
  h=1
 elif (a[i]<3200):
  j=1
 else:
  k += 1
min=b+c+d+e+f+g+h+j
max=min+k
if min==0:
 min=1
print (min,max)

Submission status: Runtime Error

Solution code:
N=int(input())
a=[int(i) for i in input().split()]
b,c,d,e,f,g,h,j,k=0,0,0,0,0,0,0,0,0
for i in range(N):
 if (a[i]<400):
  b=1
 elif (400<=a[i]<800):
  c=1
 elif (800<=a[i]<1200):
  d=1
 elif (1200<=a[i]<1600):
  e=1
 elif (1600<=a[i]<2000):
  f=1
 elif (2000<=a[i]<2400):
  g=1
 elif (2400<=a[i]<2800):
  h=1
 elif (2800<=a[i]<3200):
  j=1
 else:
  k += 1
min=b+c+d+e+f+g+h+j
max=min+k
if min==0:
 min=1
print (min,max)

Submission status: Runtime Error

Solution code:
n=int(raw_input())
a=map(int,raw_input().split())
#color=[hai,cha,midori,mizu,ao,ki,daidai,aka]
c=[0 for i in xrange(8)]
ext=0
for x in a:
 if 1<=x<=399:
  c[0]+=1
 elif 400<=x<=799:
  c[1]+=1
 elif 800<=x<=1199:
  c[2]+=1
 elif 1200<=x<=1599:
  c[3]+=1
 elif 1600<=x<=1999:
  c[4]+=1
 elif 2000<=x<=2399:
  c[5]+=1
 elif 2400<=x<=2799:
  c[6]+=1
 elif 2800<=x<=3199:
  c[7]+=1
 else:
  ext+=1
print c
res1=len(c)-c.count(0)
res2=min(res1+ext,len(c))
print res1,res2

Submission status: Runtime Error

Solution code:
# encoding:utf-8
def main():
	N = int(input())
	scores = list(map(int, input().split()))
	ranges_colored = set([x // 400 for x in scores if x <= 3199])
	n_colored = len(ranges_colored)
	n_free = len([x for x in scores if x > 3200])
	print(max(n_colored, 1), min(n_free + n_colored, 8))
	
if __name__ == '__main__':
	main()

Submission status: Runtime Error

Solution code:
import numpy as np
N=int(input())
a=list(map(int,input().split()))
a=sorted(a)
f=np.zeros(8)
ca=0
ci=0
for item in a:
    if(item<400):
        if(not f[0]):
            f[0]=1
            ca+=1
            ci+=1
        continue
    elif(item<800):
        if(not f[1]):
            f[1]=1
            ca+=1
            ci+=1
        continue
    elif(item<1200):
        if(not f[2]):
            f[2]=1
            ca+=1
            ci+=1
        continue
    elif(item<1600):
        if(not f[3]):
            f[3]=1
            ca+=1
            ci+=1
        continue
    elif(item<2000):
        if(not f[4]):
            f[4]=1
            ca+=1
            ci+=1
        continue
    elif(item<2400):
        if(not f[5]):
            f[5]=1
            ca+=1
            ci+=1
        continue
    elif(item<2800):
        if(not f[6]):
            f[6]=1
            ca+=1
            ci+=1
        continue
    elif(item<3200):
        if(not f[7]):
            f[7]=1
            ca+=1
            ci+=1
        continue
    elif(int(np.sum(f))<=8):
        i=np.where(f==0)[0]
        f[i]=1
        ca+=1
        if(ci==0):
            ci+=1
        continue
    else:
        break
print(ci,ca)

Submission status: Runtime Error

Solution code:
#Colorful Leaderboard
import numpy as np
n = int(input())
a = np.array(list(map(int, input().split())))
b = sorted (a//400)
cnt = 0
for i in range(len(b)):s
    if b[i]  < 8:
        None
    else:
        b[i]+=i
        cnt+=1
c = len(list(set(b)))

print(str(c-cnt) + " " + str(c))

Submission status: Runtime Error

Solution code:
#Traveling AtCoDeer Problem
import numpy as np
n = int(input())
a = list(map(int, input().split()))
print(max(a)-min(a))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
r = int(input())
g = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import numpy as np

N = int(input())
a = list(map(int, input().split()))
r = np.array(a)//400
s = set(r)

if 8 in s and len(s)==1 :
    min = 1
    max = len(a)
elif 8 not in s:
    min = len(s)
    max = len(s)
else :
    min = len(s) - 1
    max = min + len(r[r==8])

print(min, max)

Submission status: Runtime Error

Solution code:
N = int(raw_input())
a = raw_input()

b = a.split()
c = [0 for i in range(9)]
for i in range(N):
	b[i] = int(b[i])
	if 1 <= b[i] <=399:
		c[0] = 1
	elif 400 <= b[i] <= 799:
		c[1] = 1
	elif 800 <= b[i] <=1199:
		c[2] = 1
	elif 1200<= b[i] <= 1599:
		c[3] = 1
	elif 1600 <= b[i] <= 1999:
		c[4] = 1
	elif 2000 <= b[i] <= 2399:
		c[5] = 1
	elif 2400 <= b[i] <= 2799:
		c[6] = 1
	elif 2800 <= b[i] <= 3199:
		c[7] = 1
	else:
		c[8] += 1

max = 0
min = 0
for i in range(9):
	max = max + c[i]

min = max - c[8]
if min == 0:
	min = 1
print min, 
print max

Submission status: Runtime Error

Solution code:
N = int(raw_input())
a = raw_input()

b = a.split()
c = [0 for i in range(9)]
for i in range(N):
	b[i] = int(b[i])
	if 1 <= b[i] <=399:
		c[0] = 1
	elif 400 <= b[i] <= 799:
		c[1] = 1
	elif 800 <= b[i] <=1199:
		c[2] = 1
	elif 1200<= b[i] <= 1599:
		c[3] = 1
	elif 1600 <= b[i] <= 1999:
		c[4] = 1
	elif 2000 <= b[i] <= 2399:
		c[5] = 1
	elif 2400 <= b[i] <= 2799:
		c[6] = 1
	elif 2800 <= b[i] <= 3199:
		c[7] = 1
	else:
		c[8] += 1

max = 0
min = 0
for i in range(9):
	max = max + c[i]

min = max - c[8]

print (min,max)

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()

pair_cnt = S.count("()")
head_cnt = S.count("(") - pair_cnt
tail_cnt = S.count(")") - pair_cnt

res = S
res = tail_cnt * "(" + res
res = res + head_cnt * ")"

print(res)

Submission status: Runtime Error

Solution code:
import sys
 
stdin = sys.stdin
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()
 
n = ni()
a = na()
f = [0]*8
sp = 0
for v in a:
    if v >= 3200:
        sp += 1
    else:
        f[v//400] = 1

print(sum(f))
if sum(f) > 0:
    print("{} {}".format(sum(f), sum(f)+sp))
else:
    print("{} {}".format(sum(f)+min(sp,1), sum(f)+sp))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(max(a)-min(a))

Submission status: Runtime Error

Solution code:
#入力
N = int(input())
a_list = []
a_list = list(map(int,input().split()))

#変数を用意
g_list = [0]*9

#グループ1の要素があるか確認
for i in range(N):
    if 1 <= a_list[i] <= 399:
        g_list[0] = 1
        break

#グループ2から8の要素があるか確認
for j in range(1,8):
    for k in range(N):
        if 400*j <= a_list[k] <= (400*(j+1)-1):
            g_list[j] = 1
            break

#グループ1から8の要素数をgに代入
g = 0
for m in range(8):
    g += g_list[m] 

#グループ9の要素がいくつあるか数える
g_list[8] = 0
for l in range(N):
    if a_list[l] >= 3200:
        g_list[8] += 1

#条件分岐して数える
if g_list[8]==0:
    print(g,g)

elif g==0:
    if g_list[8] >= 8:
        print(1,8)
    else:
        print(1,g_list[8])

elif g==8:
    print(8,8)
    
else:
    if g + g_list[8] >=8:
        print(g,8)
    else:
        print(g,g+g_list[8])

Submission status: Runtime Error

Solution code:
r = int(raw_input('red:'))
g = int(raw_input('green:'))
b = int(raw_input('blue:'))

sum = r*100 + g*10 + b

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