Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Time Limit Exceeded):
M,N=input().split(' ')
M=int(M)
N=int(N)

res=1
if M==N:
    for i in range(1, M+1):
        res*=i
    res=res*res*2
elif M-N==1:
    for i in range(1, N+1):
        res*=i
    res*=res*M
elif M-N==-1:
    for i in range(1, M+1):
        res*=i
    res*=res*N
else:
    res=0

print(res%(10**9+7))


Fixed submission:
from math import *
M,N=input().split(' ')
M=int(M)
N=int(N)

res=1
if M==N:
    res=factorial(M)
    res=res*res*2
elif M-N==1:
    res=factorial(N)
    res*=res*M
elif M-N==-1:
    res=factorial(M)
    res*=res*N
else:
    res=0

print(res%(10**9+7))

Buggy python submission (verdict: Time Limit Exceeded):
M,N=input().split(' ')
M=int(M)
N=int(N)

res=1
if M==N:
    for i in range(1, M+1):
        res*=i
    res=res*res*2
elif abs(M-N)==1:
    for i in range(1, M+1):
        res*=i
    for i in range(1, N+1):
        res*=i
else:
    res=0

print(res%(10**9+7))


Fixed submission:
from math import *
M,N=input().split(' ')
M=int(M)
N=int(N)

res=1
if M==N:
    res=factorial(M)
    res=res*res*2
elif M-N==1:
    res=factorial(N)
    res*=res*M
elif M-N==-1:
    res=factorial(M)
    res*=res*N
else:
    res=0

print(res%(10**9+7))
Buggy python submission (verdict: Runtime Error):
from collections import Counter
input()
c = Counter([min(int(i)//400,8) for i in input().split()])
lt3200 = [bool(c[i]) for i in range(8)].count(True)
print(max(1, lt3200), lt3200+c[8])

Fixed submission:
print('YES' if int(input().replace(' ','')[1:])%4==0 else 'NO')
Buggy python submission (verdict: Runtime Error):
from collections import Counter
input()
c = Counter([min(int(i)//400,8) for i in input().split()])
lt3200 = [bool(c[i]) for i in range(8)].count(True)
print(max(1, lt3200), lt3200+d[8])

Fixed submission:
N =int(input())
scores = [min(int(i)//400, 8) for i in input().split()]
d = [0]*9
for s in scores:
    d[s] = d[s] + 1
lt3200 = [bool(i) for i in d[:8]].count(True)
m = max(1, lt3200)
M = lt3200+d[8]
print('{} {}'.format(m, M))

Buggy python submission (verdict: Runtime Error):
from collections import Counter
input()
scores = [min(int(i)//400, 8) for i in input().split()]
c = Counter([min(int(i)//400,8) for i in input().split()])
lt3200 = [bool(i) for i in c[:8]].count(True)
print(max(1, lt3200), lt3200+d[8])

Fixed submission:
N =int(input())
scores = [min(int(i)//400, 8) for i in input().split()]
d = [0]*9
for s in scores:
    d[s] = d[s] + 1
lt3200 = [bool(i) for i in d[:8]].count(True)
m = max(1, lt3200)
M = lt3200+d[8]
print('{} {}'.format(m, M))
Buggy python submission (verdict: Runtime Error):
N=raw_input()
a=raw_input().split()

import numpy as np
ans=np.abs(np.max(a)-np.min(a))
print(ans)

Fixed submission:
N=raw_input()
a=raw_input().split()
a=map(int,a)
import numpy as np
ans=np.abs(np.max(a)-np.min(a))
print(ans)
Buggy python submission (verdict: Runtime Error):
N = int(raw_input())
a = map(int, raw_input().split())
mx = max(a)
mn = min(a)
print mx - mn

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

Buggy python submission (verdict: Runtime Error):
a, b, c = = map(int, raw_input().split())
if (a * 100 + b * 10 + c) % 4 == 0:
    print "yes"
else:
    print "no"

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

Buggy python submission (verdict: Runtime Error):
r, g, b = map(int, input().split())

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

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


Fixed submission:
r, g, b = map(int, input().split())
 
rgb = int(r*100 + g*10 + b)
 
if rgb % 4 == 0:
  print('YES')
else:
  print('NO')
Buggy python submission (verdict: Runtime Error):
#include<stdio.h>
int main(void){
  int n,sum = 0;
  scanf("%d",&n);
  for(n;n >= 1;n--) sum += n;
  printf(sum);
  return 0;
}

Fixed submission:
n = int(input())
i = 1
sum = 0
for i in range(1,n + 1):
  sum += i
print(sum)

Buggy python submission (verdict: Runtime Error):
n = int(input())
i = 1
sum = 0
for i in range(1,n){
  sum += i
}
print i


Fixed submission:
n = int(input())
i = 1
sum = 0
for i in range(1,n + 1):
  sum += i
print(sum)

Buggy python submission (verdict: Runtime Error):
n = int(input())
i = 1
sum = 0
for i in range(1,n){
  sum += i
}
print i


Fixed submission:
n = int(input())
i = 1
sum = 0
for i in range(1,n + 1):
  sum += i
print(sum)

Buggy python submission (verdict: Runtime Error):
n = int(input())
i = 1
sum = 0
for i in range(1,n){
  sum += i
print i

Fixed submission:
n = int(input())
i = 1
sum = 0
for i in range(1,n + 1):
  sum += i
print(sum)
Buggy python submission (verdict: Runtime Error):
N = int(input())

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

color = [0] * 8
free = 0

a = 400 
    
for i in range(0,N):
    if rate[i] < a:
        color[0] = 1
    elif a <= rate[i] < 2*a:
        color[1] = 1
    elif 2*a <= rate[i] < 3*a:
        color[2] = 1
    elif 3*a <= rate[i] < 4*a:
        color[3] = 1
    elif 4*a <= rate[i] < 5*a:
        color[4] = 1
    elif 5*a <= rate[i] < 6*a:
        color[5] = 1
    elif 6*a <= rate[i] < 7*a:
        color[6] = 1
    elif 7*a <= rate[i] < 8*a:
        color[7] = 1
    elif 8*a <= rate[i]:
        free += 1
        

min_color = 0
max_color = 0

print( max(color.count(1),1), color.count(1) + free)

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

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

Buggy python submission (verdict: Runtime Error):
N = int(input())

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

color = [0] * 9

a = 400 
flag = 1
    
for i in range(0,N):
    if 8*a <= rate[i]:
        color[8] += 1
    else:
        flag = 0
        if rate[i] < a:
            color[0] = 1
        elif a <= rate[i] < 2*a:
            color[1] = 1
        elif 2*a <= rate[i] < 3*a:
            color[2] = 1
        elif 3*a <= rate[i] < 4*a:
            color[3] = 1
        elif 4*a <= rate[i] < 5*a:
            color[4] = 1
        elif 5*a <= rate[i] < 6*a:
            color[5] = 1
        elif 6*a <= rate[i] < 7*a:
            color[6] = 1
        elif 7*a <= rate[i] < 8*a:
            color[7] = 1

min_color = 0
max_color = 0


min_color = color.count(1)
max_color = min_color + color[8]
if max_color >= 8:
    max_color = 8

print(min_color,max_color)

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

if (g*10 + b) % 4 == 0:
    print("YES")
else:
    print("NO")
Buggy python submission (verdict: Runtime Error):
N = int(input())

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

color = [0] * 8

a = 400 
free = 0
    
for i in range(0,N):
    if rate[i] < a:
        color[0] = 1
    elif a <= rate[i] < 2*a:
        color[1] = 1
    elif 2*a <= rate[i] < 3*a:
        color[2] = 1
    elif 3*a <= rate[i] < 4*a:
        color[3] = 1
    elif 4*a <= rate[i] < 5*a:
        color[4] = 1
    elif 5*a <= rate[i] < 6*a:
        color[5] = 1
    elif 6*a <= rate[i] < 7*a:
        color[6] = 1
    elif 7*a <= rate[i] < 8*a:
        color[7] = 1
    elif 8*a <= rate[i]:
        free += 1
        

min_color = 0
max_color = 0

min_color = color.count(1)
max_color = min_color + color[8]

print( max(min_color,1), max_color)

Fixed submission:
N = int(input())

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

color = [0] * 8

a = 400 
free = 0
    
for i in range(0,N):
    if rate[i] < a:
        color[0] = 1
    elif a <= rate[i] < 2*a:
        color[1] = 1
    elif 2*a <= rate[i] < 3*a:
        color[2] = 1
    elif 3*a <= rate[i] < 4*a:
        color[3] = 1
    elif 4*a <= rate[i] < 5*a:
        color[4] = 1
    elif 5*a <= rate[i] < 6*a:
        color[5] = 1
    elif 6*a <= rate[i] < 7*a:
        color[6] = 1
    elif 7*a <= rate[i] < 8*a:
        color[7] = 1
    elif 8*a <= rate[i]:
        free += 1
        

min_color = 0
max_color = 0

min_color = color.count(1)
max_color = min_color + free

print( max(min_color,1), max_color)

Buggy python submission (verdict: Runtime Error):
N = int(input())

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

color = [0] * 9

a = 400 
flag = 1
    
for i in range(0,N):
    if 8*a <= rate[i]:
        color[8] += 1
    else:
        flag = 0
        if rate[i] < a:
            color[0] = 1
        elif a <= rate[i] < 2*a:
            color[1] = 1
        elif 2*a <= rate[i] < 3*a:
            color[2] = 1
        elif 3*a <= rate[i] < 4*a:
            color[3] = 1
        elif 4*a <= rate[i] < 5*a:
            color[4] = 1
        elif 5*a <= rate[i] < 6*a:
            color[5] = 1
        elif 6*a <= rate[i] < 7*a:
            color[6] = 1
        elif 7*a <= rate[i] < 8*a:
            color[7] = 1

min_color = 0
max_color = 0


min_color = color.count(1)
max_color = min_color + color[8]
if max_color > = 8:
    max_color = 8

print(min_color,max_color)

Fixed submission:
N = int(input())

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

color = [0] * 8

a = 400 
free = 0
    
for i in range(0,N):
    if rate[i] < a:
        color[0] = 1
    elif a <= rate[i] < 2*a:
        color[1] = 1
    elif 2*a <= rate[i] < 3*a:
        color[2] = 1
    elif 3*a <= rate[i] < 4*a:
        color[3] = 1
    elif 4*a <= rate[i] < 5*a:
        color[4] = 1
    elif 5*a <= rate[i] < 6*a:
        color[5] = 1
    elif 6*a <= rate[i] < 7*a:
        color[6] = 1
    elif 7*a <= rate[i] < 8*a:
        color[7] = 1
    elif 8*a <= rate[i]:
        free += 1
        

min_color = 0
max_color = 0

min_color = color.count(1)
max_color = min_color + free

print( max(min_color,1), max_color)
Buggy python submission (verdict: Runtime Error):
x, y = map(int,input().split())
A = [1,3,5,7,8,10,12]
B = [4,6,9,11]
C = [2]
if x in A:
    X = 'A'
if x in B:
    X = 'B'
if x in A:
    X = 'C'
if y in A:
    Y = 'A'
if y in B:
    Y = 'B'
if y in A:
    Y = 'C'
print('Yes' if X==Y else 'No')


Fixed submission:
x, y = map(int,input().split())
A = [1,3,5,7,8,10,12]
B = [4,6,9,11]
C = [2]
if x in A:
    X = 'A'
if x in B:
    X = 'B'
if x in C:
    X = 'C'
if y in A:
    Y = 'A'
if y in B:
    Y = 'B'
if y in C:
    Y = 'C'
print('Yes' if X==Y else 'No')
Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())

import sys
if len(str(A))>len(str(B)):
    print('GREATER')
    sys.exit()
elif len(str(A))<len(str(B)):
    print('LESS')
    sys.exit()
else:
    for a,b in zip(A,B):
        if a>b:
            print('GREATER')
            sys.exit()
        elif a<b:
            print('LESS')
            sys.exit()
print('EQUAL')

Fixed submission:
A = input()
B = input()

import sys
if len(A)>len(B):
    print('GREATER')
    sys.exit()
elif len(A)<len(B):
    print('LESS')
    sys.exit()
else:
    for a,b in zip(A,B):
        if int(a)>int(b):
            print('GREATER')
            sys.exit()
        elif int(a)<int(b):
            print('LESS')
            sys.exit()
print('EQUAL')
Buggy python submission (verdict: Runtime Error):
O = input()
E = input()
res = ''
for i in range(len(O)):
    res += O[i] + E[i]
if len(O)>len(E):
    res += O[-1]
print(res)

Fixed submission:
O = input()
E = input()
res = ''
for i in range(len(E)):
    res += O[i] + E[i]
if len(O)>len(E):
    res += O[-1]
print(res)
Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
power = 1
for i in range(N):
    power *= (i+1)
print(power%(10**9 +7))

Fixed submission:
N = int(input())
power = 1
for i in range(N):
    power *= (i+1)
    power = power%(10**9 +7)
print(power)
Buggy python submission (verdict: Runtime Error):
A, B = map(int,input())
if(A == B):
    print('Draw')
elif(B != 1 and (A == 1 or A > B)):
    print('Alice')
elif(A != 1 and (B == 1 or B > A)):
    print('Bob')

Fixed submission:
A, B = map(int,input().split())
if(A == B):
    print('Draw')
elif(B != 1 and (A == 1 or A > B)):
    print('Alice')
elif(A != 1 and (B == 1 or B > A)):
    print('Bob')
Buggy python submission (verdict: Runtime Error):
K, S = map(int, input().split())
OK = 0
for x in range(K+1):
    if(0<=S-x & S-x<=2*K): # 計算の成立条件
        if(S-x<=K): # yとzの和がk以下
            OK += S-x+1
        else: # yとzの和がk以上
            OK += (K-((S-x)-K))+1
print(OK)

Fixed submission:
s = input().split(',')
print(s[0] +' '+ s[1] + ' ' + s[2])
Buggy python submission (verdict: Runtime Error):
sa = input()
sb = input()
sc = input()

def judges(lis):
    if lis[0] == 'a':
        judge=1
    elif lis[0] == 'b':
        judge=2
    else:
        judge=3
    return judge
  
  import sys

judge = 1
while(1):
    if judge == 1:
        try:
            judge = judges(sa)
            sa = sa[1:]
            print(sa)
        except IndexError:
            print('A')
            break
    
    elif judge == 2:
        try:
            judge = judges(sb)
            sb = sb[1:]
            print(sb)
        except IndexError:
            print('B')
            break
    else:
        try:
            judge = judges(sc)
            sc = sc[1:]
            print(sc)
        except IndexError:
            print('C')
            break

Fixed submission:
sa = input()
sb = input()
sc = input()

def judges(lis):
    if lis[0] == 'a':
        judge=1
    elif lis[0] == 'b':
        judge=2
    else:
        judge=3
    return judge

import sys

judge = 1
while(1):
    if judge == 1:
        try:
            judge = judges(sa)
            sa = sa[1:]
        except IndexError:
            print('A')
            break
    
    elif judge == 2:
        try:
            judge = judges(sb)
            sb = sb[1:]
        except IndexError:
            print('B')
            break
    else:
        try:
            judge = judges(sc)
            sc = sc[1:]
        except IndexError:
            print('C')
            break
Buggy python submission (verdict: Runtime Error):
# -*- 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"

Fixed submission:
# -*- coding: utf-8 -*-
a, b, c = map(int, raw_input().split())
# 出力
if (a*100+b*10+c)%4 ==0:
    print "YES"
else:
    print "NO"

Buggy python submission (verdict: Runtime Error):
r,g,b=input()
a=(100*int(r)+10*int(g)+int(b))%4
if a==0:
    print("YES")
else:
    print("NO")

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

Buggy python submission (verdict: Runtime Error):
l = input().split()
n = int(l.join())

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

Fixed submission:
l = input().split()
n = int("".join(l))

if n%4 == 0:print("YES")
else:print("NO")
Buggy python submission (verdict: Runtime Error):
n = input()
if n<1200:
 print("ABC")
else:
 print("SRC")

Fixed submission:
n = input()
n = int(n)
if n < 1200:
 print("ABC")
else:
 print("ARC")
Buggy python submission (verdict: Runtime Error):
a = map(str,raw_input().split())
#a = int(raw_input())

print a[0][0].upper + a[1][0].upper + a[2][0].upper

Fixed submission:
a = map(str,raw_input().split())
#a = int(raw_input())

print a[0][0].upper() + a[1][0].upper() + a[2][0].upper()
Buggy python submission (verdict: Runtime Error):
    a = input()
    b = input()
    h = input()
    print (a+b)*h/2

Fixed submission:
a = input()
b = input()
h = input()
print (a+b)*h/2
Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split())
c = 1
for i in range(a,b+1):
	c = c * i 

if c < 0:
	print "Negative"
elif c == 0:
	print "Zero"
else:
	print "Positive"

Fixed submission:
a,b = map(int, raw_input().split())
if a < 0 and b < 0:
	if (b - a)%2 == 1:
		print "Positive"
	else:
		print "Negative"
elif a * b <= 0: 
	print "Zero"
else:
	print "Positive"
Buggy python submission (verdict: Runtime Error):
import sys

group1 = [1, 3, 5, 7, 8, 10, 12]
group2 = [4, 6, 9, 11]
group3 = [2]

input_x = int(sys.argv[1])
input_y = int(sys.argv[2])

exist_group1 = group1.count(input_x) + group1.count(input_y)
exist_group2 = group2.count(input_x) + group2.count(input_y)
exist_group3 = group3.count(input_x) + group3.count(input_y)

if exist_group1 == 2 or exist_group2 == 2 or exist_group3 == 2:
    print("Yes")
else:
    print("No")


Fixed submission:
group1 = [1, 3, 5, 7, 8, 10, 12]
group2 = [4, 6, 9, 11]
group3 = [2]

input = list(map(int, input().split()))
input_x = int(input[0])
input_y = int(input[1])

exist_group1 = group1.count(input_x) + group1.count(input_y)
exist_group2 = group2.count(input_x) + group2.count(input_y)
exist_group3 = group3.count(input_x) + group3.count(input_y)

if exist_group1 == 2 or exist_group2 == 2 or exist_group3 == 2:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
def calcManhattanDistance(student, checkpoint):
    return abs(student[0] - checkpoint[0]) + abs(student[1] - checkpoint[1])


if __name__ == "__main__":
    # input process
    N, M = map(int, input().split())
    students = [list(map(int, input().split())) for i in range(N)]
    checkpoints = [list(map(int, input().split())) for i in range(M)]

    # calculation process
    for student in students:
        distance_list = []

        for checkpoint in checkpoints:
            distance_list.append(calcManhattanDistance(student, checkpoint))

        # print the first index(+1) of minimum value
        minval = min(distance_list)
        print(distance_list.index(minval) + 1)

    # END

Fixed submission:
A, B = map(int, input().split())
print((A + B) % 24)
Buggy python submission (verdict: Runtime Error):
#入力
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])


Fixed submission:
r,g,b = map(int,input().split())
x = r*100 + g*10 + b
if x%4 == 0:
    print('YES')
else:
    print('NO')
Buggy python submission (verdict: Runtime Error):
N,K = map(int,input().split())
list1 = []
for i in range(N):
    list1.append(list(map(int,input().split())))
list1.sort()
list2 = []
for j in range(N):
    list2 += [list1[j][0]]*list1[j][1]
    if len(list2) >= K:
        break
print(list2[K-1])

Fixed submission:
A,B,C = map(int,input().split())
if C >= A and C<= B:
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
#N,Mとa_1からb_Mまで入力
N,M = map(int,input().split())
list1 = [input() for i in range(1,2M+1)]
for i in range(M):
    list1.append(map(int,input() .split()))
    
#print list.count(l) for文で0から2M-1まで
for l in range(1,N+1):
    print(list1.count(l))

Fixed submission:
A,B,C = map(int,input().split())
if C >= A and C<= B:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Time Limit Exceeded):
N,K = map(int,input().split())
list1 = []
for i in range(N):
    list1.append(list(map(int,input().split())))
list1.sort()
list2 = []
for j in range(N):
    list2 += [list1[j][0]]*list1[j][1]
    if len(list2) >= K:
        break
print(list2[K-1])

Fixed submission:
N,K = map(int,input().split())
list1 = []
for i in range(N):
    list1.append(list(map(int,input().split())))
num = [0]*(10**5+1)
for j in range(N):
    num[list1[j][0]] += list1[j][1]
c = 0
d = 0
for k in range(10**5+1):
    c += num[k]
    if c >= K:
        d = k
        break
print(d)

Buggy python submission (verdict: Time Limit Exceeded):
N,K = map(int,input().split())
list1 = []
for i in range(N):
    a,b = map(int,input().split()) 
    list2 = [a]*b
    list1 += list2
list1.sort()
print(list1[K-1])

Fixed submission:
N,K = map(int,input().split())
list1 = []
for i in range(N):
    list1.append(list(map(int,input().split())))
num = [0]*(10**5+1)
for j in range(N):
    num[list1[j][0]] += list1[j][1]
c = 0
d = 0
for k in range(10**5+1):
    c += num[k]
    if c >= K:
        d = k
        break
print(d)

Buggy python submission (verdict: Time Limit Exceeded):
N,K = map(int,input().split())
list1 = []
for i in range(N):
    a,b = map(int,input().split()) 
    for j in range(b):
        list1.append(a)
list1.sort()
print(list1[K-1])

Fixed submission:
N,K = map(int,input().split())
list1 = []
for i in range(N):
    list1.append(list(map(int,input().split())))
num = [0]*(10**5+1)
for j in range(N):
    num[list1[j][0]] += list1[j][1]
c = 0
d = 0
for k in range(10**5+1):
    c += num[k]
    if c >= K:
        d = k
        break
print(d)
Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# _*_ coding utf-8 _*_

A = int(input())
B = int(input())

sum = A + B

if sum <= 10:
    print(sum)

elif sum > 10:
    print("error")


Fixed submission:
#!/usr/bin/env python
# _*_ coding: utf-8 _*_
a = input()
a.split()
a.split()[1]

A = int(a.split()[0])
B = int(a.split()[1])

sum = A + B

if sum < 10:
    print(sum)

elif sum >= 10:
    print("error")
Buggy python submission (verdict: Runtime Error):
import numpy as np
n=input()
n=int(n)
a=input().split()
b=np.zeros(n)
div=0
num_8=0
for i in range(n):
 a[i]=int(a[i])
 if a[i]<=399 and a[i]>=1:
  b[i]=0
 elif a[i]>=400 and a[i]<=799:
  b[i]=1
 elif a[i]>=800 and a[i]<=1199:
  b[i]=2
 elif a[i]>=1200 and a[i]<=1599:
  b[i]=3
 elif a[i]>=1600 and a[i]<=1999:
  b[i]=4
 elif a[i]>=2000 and a[i]<=2399:
  b[i]=5
 elif a[i]>=2400 and a[i]<=2799:
  b[i]=6
 elif a[i]>=2800 and a[i]<=3199:
  b[i]=7
 else:
  b[i]=8
  num_8=num_8+1
for i in range(8):
 if i in b:
  div=div+1
min=div
max=div+num_8
if min==0:
 min=1
print(min,max)

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

Buggy python submission (verdict: Runtime Error):
import numpy as np
n=input()
n=int(n)
a=input().split()
b=np.zeros(n)
div=0
num_8=0
for i in range(n):
 a[i]=int(a[i])
 if a[i]<=399 and a[i]>=1:
  b[i]=0
 elif a[i]>=400 and a[i]<=799:
  b[i]=1
 elif a[i]>=800 and a[i]<=1199:
  b[i]=2
 elif a[i]>=1200 and a[i]<=1599:
  b[i]=3
 elif a[i]>=1600 and a[i]<=1999:
  b[i]=4
 elif a[i]>=2000 and a[i]<=2399:
  b[i]=5
 elif a[i]>=2400 and a[i]<=2799:
  b[i]=6
 elif a[i]>=2800 and a[i]<=3199:
  b[i]=7
 else:
  b[i]=8
  num_8=num_8+1
for i in range(8):
 if i in b:
  div=div+1
min=div
max=div+num_8
if min==0:
 min=1
print(min,max)

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