Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
print("Yes" if len(set(input()) == 3 else "No")

Fixed submission:
print("Yes" if len(set(input())) == 3 else "No")
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = [input() for _ in range(n)]
m = int(input())
t = [input() for i in range(m)]

l = []
for i in range(n):
  S = s.count(s[i])
  T = t.count(s[i])
  l.append(S - T)
  
if max(l) < 0:
  print("0")
else:
  print(max(l))


Fixed submission:
a, b, c = map(int,input().split())
if a + b >= c:
  print("Yes")
  
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = [input() for _ in range(n)]
m = int(input())
t = [input() for i in range(m)]

l = []
for i in range(n):
  S = s.count(s[i])
  T = t.count(t[i])
  l.append(S - T)
  
if max(l) < 0:
  print("0")
else:
  print(max(l))


Fixed submission:
n = int(input())
s = [input() for _ in range(n)]
m = int(input())
t = [input() for _ in range(m)]

l = []
for i in range(n):
  S = s.count(s[i])
  T = t.count(s[i])
  l.append(S - T)
  
if max(l) < 0:
  print(0)
else:
  print(max(l))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = [int(input()) for _ in range(n)]
m = int(input())
t = [int(input()) for i in range(m)]

l = []
for i in range(n):
  S = s.count(i)
  T = t.count(i)
  l.append(S - T)
  
if max(l) < 0:
  print("0")
else:
  print(max(l))

Fixed submission:
n = int(input())
s = [input() for _ in range(n)]
m = int(input())
t = [input() for _ in range(m)]

l = []
for i in range(n):
  S = s.count(s[i])
  T = t.count(s[i])
  l.append(S - T)
  
if max(l) < 0:
  print(0)
else:
  print(max(l))
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = list[input().split()]

if len(set(s)) == "Y":
  print("Four")
else:
  print("Three")

Fixed submission:
n = int(input())
s = list(input().split())

if len(set(s)) == 3:
  print("Three")
else:
  print("Four")

Buggy python submission (verdict: Runtime Error):
n = int(input())
for i in range(n):
  s = input():
    if s == "Y":
      print("Four")
      break
    else:
      print("Three")

Fixed submission:
n = int(input())
s = list(input().split())

if len(set(s)) == 3:
  print("Three")
else:
  print("Four")
Buggy python submission (verdict: Runtime Error):
n , a = map(int,input().split())
if n%500 < a:
  print("Yes")
else:
  print("No")

Fixed submission:
n = int(input())
a = int(input())

if n%500 <= a:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
n , a = map(int,input().split())
if 500%n >= a:
  print("Yes")
else:
  print("No")

Fixed submission:
n = int(input())
a = int(input())

if n%500 <= a:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
n , a = map(int,input().split())
if 500%n <= a:
  print("Yes")
else:
  print("No")

Fixed submission:
n = int(input())
a = int(input())

if n%500 <= a:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
x,a,b = map(int, input().split())
print((x-a)%b)

Fixed submission:
x = int(input())
a = int(input())
b = int(input())
print((x-a)%b)

Buggy python submission (verdict: Runtime Error):
x,a,b = map(int,input().split())
print((x-(x-a)/b))

Fixed submission:
x = int(input())
a = int(input())
b = int(input())
print((x-a)%b)

Buggy python submission (verdict: Runtime Error):
x,a,b = map(int,input().split())
print((x-a)%b)

Fixed submission:
x = int(input())
a = int(input())
b = int(input())
print((x-a)%b)
Buggy python submission (verdict: Runtime Error):
a, b = map(int,input().split())
c = (a,b)
if c == ((c**.5)**2):
  print("Yes")
else:
  print("No")

Fixed submission:
c=int(input().replace(" ",""))
print("Yes" if c==int(c**.5)**2 else "No")
Buggy python submission (verdict: Runtime Error):
s = input()
print(s.replace("2017,"2018"))

Fixed submission:
s = input()
print(s.replace("2017","2018"))
Buggy python submission (verdict: Runtime Error):
a, b, c, d = map(int,input().split())
if a + b > c + d:
  prtin("Left")

elif a + b < c + d:
  print("Right")

else:
  print("Balanced")


Fixed submission:
a, b, c, d = map(int,input().split())
if a + b > c + d:
  print("Left")
 
elif a + b < c + d:
  print("Right")
 
else:
  print("Balanced")

Buggy python submission (verdict: Runtime Error):
a, b, c, d = map(int,input().split())
if a + b > c + d:
  prtin("Left")

elif a + b < c + d:
  print("Right")

else:
  print("Balanced")


Fixed submission:
a, b, c, d = map(int,input().split())
if a + b > c + d:
  print("Left")
 
elif a + b < c + d:
  print("Right")
 
else:
  print("Balanced")

Buggy python submission (verdict: Runtime Error):
a, b, c, d = map(int,input().split())
if a + b > c + d:
  prtin("Left")

elif a + b < c + d:
  print("Right")

else:
  print("Balansed")

Fixed submission:
a, b, c, d = map(int,input().split())
if a + b > c + d:
  print("Left")
 
elif a + b < c + d:
  print("Right")
 
else:
  print("Balanced")
Buggy python submission (verdict: Runtime Error):
x, y = map(int,input().split())
if x < y:
  print("<")

elif x == y:
  print("=")
  
else:
  print(">")

Fixed submission:
x, y = input().split()
if x < y:
  print("<")
 
elif x == y:
  print("=")
  
else:
  print(">")
Buggy python submission (verdict: Runtime Error):
n = list(input())
if n.index("9"):
    print("Yes")
else:
    print("No")  

Fixed submission:
n = list(input())
if n[0] == "9" or n[1] == "9":
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
n = list(input())
if n(0) == n(2):
  print("Yes")
else:
  print("No")

Fixed submission:
n = list(input())
if n[0] == n[2]:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
print(s[0] + str(len(s)-2) + s[-1])

Fixed submission:
n,m = map(int,input().split())
print((n-1)*(m-1))

Buggy python submission (verdict: Runtime Error):
s = str(input())
print(s[0]+len(s)+s[-1])

Fixed submission:
n,m = map(int,input().split())
print((n-1)*(m-1))

Buggy python submission (verdict: Runtime Error):
s = input()
print(s[0]+len(s)+s[-1])

Fixed submission:
n,m = map(int,input().split())
print((n-1)*(m-1))

Buggy python submission (verdict: Runtime Error):
n,m = (int, input().split())
print((n-1)*(m-1))

Fixed submission:
n,m = map(int,input().split())
print((n-1)*(m-1))

Buggy python submission (verdict: Runtime Error):
n,m = (int(input()).split())
print((n-1)*(m-2))

Fixed submission:
n,m = map(int,input().split())
print((n-1)*(m-1))

Buggy python submission (verdict: Runtime Error):
n = int(input())
m = int(input())
print((n-1)*(m-1))

Fixed submission:
n,m = map(int,input().split())
print((n-1)*(m-1))
Buggy python submission (verdict: Runtime Error):
s = intput()

print(s[0] + str((len(s)-2)) + s[-1])


Fixed submission:
s = input()
print(s[0]+str(len(s)-2)+s[-1])

Buggy python submission (verdict: Runtime Error):
print(s[0] + str((len(s)-2)) + s[-1])


Fixed submission:
s = input()
print(s[0]+str(len(s)-2)+s[-1])

Buggy python submission (verdict: Runtime Error):
print(s[0] + str((len-2)) + s[-1])

Fixed submission:
s = input()
print(s[0]+str(len(s)-2)+s[-1])

Buggy python submission (verdict: Runtime Error):
s = input()
print(s[0]+s.count()+s[-1])

Fixed submission:
s = input()
print(s[0]+str(len(s)-2)+s[-1])
Buggy python submission (verdict: Runtime Error):
n, k = map(int,input().split())
l = list(input())
a = sorted(l)[::1]
print(sum(a)[-k:])

Fixed submission:
a, b = map(int,input().split())
if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0:
  print("Possible")

else:
  print("Impossible")
Buggy python submission (verdict: Runtime Error):
x, a, b = map(int,input().split())
 
if x => abs(b - a):
  print("safe")
elif x <= abs(b - a):
  print("dangerous")
else:
  print("delicious")


Fixed submission:
x, a, b = map(int,input().split())
 
if 0 >= (b - a):
  print("delicious")
elif x < (b - a):
  print("dangerous")
else:
  print("safe")

Buggy python submission (verdict: Runtime Error):
x, a, b = map(int,input().split())
 
if x >= abs(b - a):
  print("safe")
elif x =< abs(b - a):
  print("dangerous")
else:
  print("delicious")


Fixed submission:
x, a, b = map(int,input().split())
 
if 0 >= (b - a):
  print("delicious")
elif x < (b - a):
  print("dangerous")
else:
  print("safe")
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int,input().split())
if a[-1] == b[0] and b[-1] == c[0]:
	print("YES")
else:
	print("NO")

Fixed submission:
a, b, c = input().split()
if a[-1] == b[0] and b[-1] == c[0]:
	print("YES")
else:
	print("NO")
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int,input().split())
if c - b = b - a:
	print("Yes")
else:
	print("No")


Fixed submission:
a, b, c = map(int,input().split())
if c - b == b - a:
	print("YES")
else:
	print("NO")

Buggy python submission (verdict: Runtime Error):
a, b, c = map(int,input().split())
if c - b = a - b:
	print("Yes")
else:
	print("No")

Fixed submission:
a, b, c = map(int,input().split())
if c - b == b - a:
	print("YES")
else:
	print("NO")
Buggy python submission (verdict: Runtime Error):
a, b input().split()
if a == "H" and b == "H":
  print("H")
elif a == "H" and b == "D":
  print("D")
elif a == "D" and b == "H":
  print("D")
else:
  print("H")

Fixed submission:
a, b = input().split()
if a =="H" and b == "H":
  print("H")
elif a == "H" and b == "D":
  print("D")
elif a == "D" and b == "H":
  print("D")
else:
  print("H")

Buggy python submission (verdict: Runtime Error):
a = input()
b = input()
if a == "H" and b == "H":
  print("H")
elif a == "H" and b == "D":
  print("D")
elif a == "D" and b == "H":
  print("D")
else:
  print("H")

Fixed submission:
a, b = input().split()
if a =="H" and b == "H":
  print("H")
elif a == "H" and b == "D":
  print("D")
elif a == "D" and b == "H":
  print("D")
else:
  print("H")

Buggy python submission (verdict: Runtime Error):
a, b = input().split())
if a =="H" and b == "H":
  print("H")
elif a == "H" and b == "D":
  print("D")
elif a == "D" and b == "H":
  print("D")
else:
  print("H")

Fixed submission:
a, b = input().split()
if a =="H" and b == "H":
  print("H")
elif a == "H" and b == "D":
  print("D")
elif a == "D" and b == "H":
  print("D")
else:
  print("H")
Buggy python submission (verdict: Runtime Error):
c = input()
if c = "a" or c = "i" or c = "u" or c = "e" or c = "o":
	print("vowel")
    
else:
	print("consonant")

Fixed submission:
c = input()
if c == "a" or c == "i" or c == "u" or c == "e" or c == "o":
	print("vowel")
    
else:
	print("consonant")

Buggy python submission (verdict: Runtime Error):
c = input()
if c = "a" or c = "i" or c = "u" or c = "e", c = "o":
	print("vowel")
    
else:
	print("consonant")

Fixed submission:
c = input()
if c == "a" or c == "i" or c == "u" or c == "e" or c == "o":
	print("vowel")
    
else:
	print("consonant")
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int,input().split())
if a + b = c or b + c = a or a + c = b:
  print("Yes")
else:
  print("No")

Fixed submission:
a, b, c = map(int,input().split())
if a + b == c or b + c == a or a + c == b:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
a, b, h = map(int,input().split())
print(((a+b)*h)//2)

Fixed submission:
a = int(input())
b = int(input())
h = int(input())
print(((a+b)*h)//2)

Buggy python submission (verdict: Runtime Error):
a, b, h = map(int.input().split())
print(((a+b)*h)//2)

Fixed submission:
a = int(input())
b = int(input())
h = int(input())
print(((a+b)*h)//2)
Buggy python submission (verdict: Runtime Error):
n,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print(*s,sep="")

Fixed submission:
a, b, c = map(int,input().split())
if a == 5 and b == 5:
  print("YES")
elif b == 5 and c == 5:
  print("YES")
elif a == 5 and c == 5:
  print("YES")
else:
  print("NO")
Buggy python submission (verdict: Runtime Error):
while True:
    a,b,c = map(int,input().strip().split())
    if(a>b+c):
        print(0)
    else:
        print(b + c - a)

Fixed submission:
while True:
    try:
        a,b,c = map(int,input().strip().split())
        print(max(b + c - a,0))
    except:
        break
Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
s = input()
cnt = 0
flag = False

for x in range(10):
	for y in range(10):
		for z in range(10):
			for i in range(n-2):
				if int(s[i]) == x:
					for j in range(i+1, n-1):
						if int(s[j]) == y:
							for k in range(j+1, n):
								if int(s[k]) == z:
									flag = True
									cnt += 1
									break
							if flag:
								break
					if flag:
						break
			
print(cnt)

Fixed submission:
n = int(input())
s = input()
cnt = 0

for x in range(10):
	for y in range(10):
		for z in range(10):
			i = s.find(str(x))
			if i != -1:
				i = s.find(str(y), i+1)
				if i != -1:
					i = s.find(str(z), i+1)
					if i != -1:
						cnt += 1
				
print(cnt)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
s = input()

t = '000'
lst = []

for i in range(n-2):
	for j in range(i+1, n-1):
		for k in range(j+1, n):
			t = str(s[i]) + str(s[j]) + str(s[k])
			if not t in lst:
				lst.append(t)

print(len(lst))

Fixed submission:
n = int(input())
s = input()
cnt = 0

for x in range(10):
	for y in range(10):
		for z in range(10):
			i = s.find(str(x))
			if i != -1:
				i = s.find(str(y), i+1)
				if i != -1:
					i = s.find(str(z), i+1)
					if i != -1:
						cnt += 1
				
print(cnt)
Buggy python submission (verdict: Runtime Error):
import math

a, b, x = map(int, input().split())
n = 0
i = 1
f = int(1e9)
ans = 0

while f-i > 1:
  n = (i+f)//2
  d = math.trunc(math.log10(n)) + 1
  if a*n + b*d <= x:
    i = n
  else:
    f = n

if a*f + b*d <= x:
  ans = f
elif a*i + b*d <= x:
  ans = i
else:
  ans = 0

print(ans)

Fixed submission:
s = input()
w = ['SUN','MON','TUE','WED','THU','FRI','SAT']
n = [7,6,5,4,3,2,1]

for i in range(7):
  if s == w[i]:
    print(n[i])
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = input()
alps = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
number = 0
ans = str()

for i in range(n):
  alp = s[i]
  for j in range(26):
    if alps[j] == alp:
      number = (j + n) % 26
      ans += alps[number]

print(ans)

Fixed submission:
n = int(input())
s = input()
alps = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
number = 0
ans = str()

for i in range(len(s)):
  alp = s[i]
  for j in range(26):
    if alps[j] == alp:
      number = (j + n) % 26
      ans += alps[number]
      
print(ans)
Buggy python submission (verdict: Time Limit Exceeded):
s = input()
cntu = 0
cntd = 0
ans = 0

while s != "":
  while s != "":
    if s[0] == "<":
      cntu += 1
      s = s[1:]
    else:
      break
  while s != "":
    if s[0] == ">":
      cntd += 1
      s = s[1:]
    else:
      break
  if cntu == 0:
    ans += cntd*(cntd+1)//2
  elif cntd == 0:
    ans += cntu*(cntu+1)//2
  else:
    ans += max(cntu, cntd)*(max(cntu, cntd)+1)//2 + min(cntu, cntd)*(min(cntu, cntd)-1)//2
  cntu = 0
  cntd = 0

print(ans)

Fixed submission:
s = input()
a = [0] * (len(s)+1)

for i in range(len(s)):
  if s[i] == "<":
    a[i+1] = a[i] + 1

for i in range(len(s)-1, -1, -1):
  if s[i] == ">":
    a[i] = max(a[i], a[i+1]+1)

print(sum(a))
Buggy python submission (verdict: Runtime Error):
a, b = int(input().split())
 
if a > b * 2:
  ret = a - b * 2
else:
  ret = 0
  
print(ret)

Fixed submission:
x = input().split()
 
a = int(x[0])
b = int(x[1])
 
if a > b * 2:
  ret = a - b * 2
else:
  ret = 0
  
print(ret)

Buggy python submission (verdict: Runtime Error):
x = input().split()
 
a = x[0]
b = x[1]
 
if a > b * 2:
  print(a - b * 2)
else:
  print(0)

Fixed submission:
x = input().split()
 
a = int(x[0])
b = int(x[1])
 
if a > b * 2:
  ret = a - b * 2
else:
  ret = 0
  
print(ret)

Buggy python submission (verdict: Runtime Error):
x = input().split()

a = x[0]
b = x[1]

if a > b * 2:
  ret = a - b * 2
else:
  ret = 0
  
print(ret)

Fixed submission:
x = input().split()
 
a = int(x[0])
b = int(x[1])
 
if a > b * 2:
  ret = a - b * 2
else:
  ret = 0
  
print(ret)

Buggy python submission (verdict: Runtime Error):
a, b = input().split()

if a > b * 2:
  ret = a - b * 2
else:
  ret = 0
  
print(ret)



Fixed submission:
x = input().split()
 
a = int(x[0])
b = int(x[1])
 
if a > b * 2:
  ret = a - b * 2
else:
  ret = 0
  
print(ret)
Buggy python submission (verdict: Runtime Error):
N = int(input())
d = list(map(int, input().split()))
cnt = 0

for i in range(N-1)
	for j in range(i+1, N)
  		cnt += d[i] * d[j]

print(cnt)

Fixed submission:
N = int(input())
d = list(map(int, input().split()))
cnt = 0
 
for i in range(N-1):
	for j in range(i+1, N):
  		cnt += d[i] * d[j]
 
print(cnt)
Buggy python submission (verdict: Runtime Error):
N = int(input())
S = input()
cnt = 0
 
for i in range(N-1):
	if S[i] == S[i+1]:
      cnt += 1
 
print(N - cnt)

Fixed submission:
N = int(input())
S = input()
cnt = 0

for i in range(N-1):
  if S[i] == S[i+1]:
    cnt += 1
    
print(N - cnt)

Buggy python submission (verdict: Runtime Error):
N = int(input())
S = input()
cnt = 0
 
for i in range(N-1):
	if S[i] == S[i+1]:
      	cnt += 1

print(N - cnt)

Fixed submission:
N = int(input())
S = input()
cnt = 0

for i in range(N-1):
  if S[i] == S[i+1]:
    cnt += 1
    
print(N - cnt)

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

for i in range(N-1):
	if S[i] = S[i+1]:
      	cnt += 1

ret = N - cnt

print(ret)


Fixed submission:
N = int(input())
S = input()
cnt = 0

for i in range(N-1):
  if S[i] == S[i+1]:
    cnt += 1
    
print(N - cnt)
Buggy python submission (verdict: Runtime Error):
N = int(input())
odd = 0

if N % 2 = 0:
  odd = N / 2
else:
  odd = (N + 1) / 2

print(odd / N)

Fixed submission:
N = int(input())
odd = 0
 
if N % 2 == 0:
  odd = N / 2
else:
  odd = (N + 1) / 2
 
print(odd / N)

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

if N % 2 = 0:
  ans = N / 2
else:
  ans = (N + 1) / 2
  
print(ans)

Fixed submission:
N = int(input())
odd = 0
 
if N % 2 == 0:
  odd = N / 2
else:
  odd = (N + 1) / 2
 
print(odd / N)
Buggy python submission (verdict: Runtime Error):
N, K = map(int, input().split())
h = list(map(input().split()))
cnt = 0
 
for i in range(N):
  if h[i] >= K:
    cnt += 1
    
print(cnt)

Fixed submission:
N, K = map(int, input().split())
h = list(map(int, input().split()))
cnt = 0
 
for i in range(N):
  if h[i] >= K:
    cnt += 1
    
print(cnt)

Buggy python submission (verdict: Runtime Error):
N, K = map(int, input().split())
h = input().split()
cnt = 0

for i in range(N):
  if h[i] >= K:
    cnt += 1
    
print(cnt)

Fixed submission:
N, K = map(int, input().split())
h = list(map(int, input().split()))
cnt = 0
 
for i in range(N):
  if h[i] >= K:
    cnt += 1
    
print(cnt)
Buggy python submission (verdict: Runtime Error):
n, m = map(int, input().split())
a = []
b = []
for i in range(m):
  a[i], b[i] = map(int, input().split())
cnt = 0

for i in range(1, n+1):
  for j in range(m):
    if a[j] == i:
      cnt += 1
    if b[j] == i:
      cnt += 1
  print(cnt)
  cnt = 0


Fixed submission:
n, m = map(int, input().split())
a = []
b = []
for i in range(m):
  l = list(map(int, input().split()))
  a.append(l[0])
  b.append(l[1])
cnt = 0

for i in range(1, n+1):
  for j in range(m):
    if a[j] == i:
      cnt += 1
    if b[j] == i:
      cnt += 1
  print(cnt)
  cnt = 0

Buggy python submission (verdict: Runtime Error):
n, m = map(int, input().split())
a = []
b = []
for i in range(m):
 a[i], b[i] = map(int, input().split())
cnt = 0

for i in range(1, n+1):
  for j in range(m):
    if a[j] == i:
      cnt += 1
    if b[j] == i:
      cnt += 1
  print(cnt)
  cnt = 0


Fixed submission:
n, m = map(int, input().split())
a = []
b = []
for i in range(m):
  l = list(map(int, input().split()))
  a.append(l[0])
  b.append(l[1])
cnt = 0

for i in range(1, n+1):
  for j in range(m):
    if a[j] == i:
      cnt += 1
    if b[j] == i:
      cnt += 1
  print(cnt)
  cnt = 0

Buggy python submission (verdict: Runtime Error):
n, m = map(int, input().split())
a = []
b = []
for i in range(m):
 a[i], b[i] = map(int, input().split())
cnt = 0

for i in range(1, n+1):
  for j in range(m):
    if a[j] = i:
      cnt += 1
    if b[j] = i:
      cnt += 1
  print(cnt)
  cnt = 0

Fixed submission:
n, m = map(int, input().split())
a = []
b = []
for i in range(m):
  l = list(map(int, input().split()))
  a.append(l[0])
  b.append(l[1])
cnt = 0

for i in range(1, n+1):
  for j in range(m):
    if a[j] == i:
      cnt += 1
    if b[j] == i:
      cnt += 1
  print(cnt)
  cnt = 0
Buggy python submission (verdict: Runtime Error):
N,L=map(int,input().split())
s=[list(input()) for i in range(N)]
p=sorted(s)

print("".joint(p))

Fixed submission:
N,L=map(int,input().split())
s=[str(input()) for i in range(N)]
p=sorted(s)
print("".join(p))
Buggy python submission (verdict: Runtime Error):
N, M = input().split()
N = int(N)
M = int(M)
p = []
S = []
for i in range(M):
    a, b = input().split()
    a = int(a)
    p.append(a)
    S.append(b)
right = 0
wrong = 0
for j in range(M):
    if right[p[j] - 1] == 0:
        if S[k] == 'WA':
            wrong += 1
        elif S[k] == 'AC' and :
            right += 1
print(str(right) + ' ' + str(wrong))

Fixed submission:
x = input()
y = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
for i in range(26):
    if y[i] == x:
        print(y[i + 1])

Buggy python submission (verdict: Runtime Error):
N, M = input().split()
N = int(N)
M = int(M)
p = []
S = []
for i in range(M):
    a, b = input().split()
    a = int(a)
    p.append(a)
    S.append(b)
right = []
wrong = []
for j in range(N):
    right.append(0)
    wrong.append(0)
for k in range(M):
    if S[k] == 'WA' and right[p[k] - 1] == 0:
        wrong[p[k] - 1] += 1
    else if S[k] == 'AC':
        if right[p[k] - 1] == 0:
            right[p[k] - 1] += 1
print(str(sum(right)) + ' ' + str(sum(wrong)))

Fixed submission:
x = input()
y = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
for i in range(26):
    if y[i] == x:
        print(y[i + 1])
Buggy python submission (verdict: Runtime Error):
s = input()
if s == 'Sun':
  s = 0
elif s == 'MON':
  s = 1
elif s == 'TUE':
  s = 2
elif s == 'WED':
  s = 3
elif s =='THU':
  s = 4
elif s == 'FRI':
  s = 5
elif s == 'SAT':
  s = 6
print(int(s) - 0)

Fixed submission:
s = input()
if s == 'SUN':
  s = 7
elif s == 'MON':
  s = 6
elif s == 'TUE':
  s = 5
elif s == 'WED':
  s = 4
elif s =='THU':
  s = 3
elif s == 'FRI':
  s = 2
elif s == 'SAT':
  s = 1
print(s)

Buggy python submission (verdict: Runtime Error):
s = input()
if s == 'Sun':
  s = 0
elif s == 'MON':
  s = 1
elif s == 'TUE':
  s = 2
elif s == 'WED':
  s = 3
elif s =='THU':
  s = 4
elif s == 'FRI':
  s = 5
elif s == 'SAT':
  s = 6
print(s - 0)

Fixed submission:
s = input()
if s == 'SUN':
  s = 7
elif s == 'MON':
  s = 6
elif s == 'TUE':
  s = 5
elif s == 'WED':
  s = 4
elif s =='THU':
  s = 3
elif s == 'FRI':
  s = 2
elif s == 'SAT':
  s = 1
print(s)
Buggy python submission (verdict: Runtime Error):
a=int(input())
print(n*(n-1)/2)

Fixed submission:
n=int(input())
print(n*(n-1)//2)
Buggy python submission (verdict: Runtime Error):
a,p = map(int,input().split())
print((3*a+p)//2)

Fixed submission:
a,p = map(int,input().split())
print((3*a+p)//2)
Buggy python submission (verdict: Runtime Error):
a,b,c= map(int,input().split())
if a+b>=c && a<=c :
    print("Yes")
else :
    print("No")

Fixed submission:
a,b,c= map(int,input().split())
if a+b>=c and a<=c :
    print("YES")
else :
    print("NO")
Buggy python submission (verdict: Time Limit Exceeded):
[n] = map(int, input().split())
[*p_list] = map(int, input().split())

count = 0

for i,p in enumerate(p_list):
  s_p = p_list[:i+1]
  if min(s_p) == p:
    count += 1

print(count)

Fixed submission:
[n] = map(int, input().split())
[*p_list] = map(int, input().split())

count = 0
p_min = 2 * 10 ** 5

for p in p_list:
  if p_min >= p:
    count += 1
    p_min = p

print(count)
Buggy python submission (verdict: Runtime Error):
import fractions

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

a = A[0]
for i in range(1, N):
    g = a * A[i] // fractions.gcd(a, A[i])
    a = g
    
b = 0
for i in range(N):
    b = b + gcc // A[i]

c = b % (1000000007)
print(c)

Fixed submission:
N, M = map(int, input().split())

if M >= N:
    print('Yes')
else:
    print('No')