Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
N, K = map(int, input().split())
h = list(map(int, input().split()))
count = 0
for i in range(len(h)):
    a = h[i]
    if h >= K:
        count += 1
print(count)

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

Buggy python submission (verdict: Runtime Error):
N,K=map(int,input().split())
h=[int(input() for i in range(N))]
count=0
for a in range(1,N+1):
  if a<=K:
    count+=1
  else:
    pass
print(count)

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

Buggy python submission (verdict: Runtime Error):
n=int(input())
k=int(input())
N=map(int,input().split())
count=0
for n1 in n:
  if N>=k:
    count+=1
  ekse:
    count+=0
print(count)

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

Buggy python submission (verdict: Runtime Error):
n=int(input())
k=int(input())
N=map(int,input().split())
count=0
for n1 in n:
  if N>k:
    count+=1
  ekse:
    count+=0
pribt(count)


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

Buggy python submission (verdict: Runtime Error):
n=int(input())
k=int(input())
N=map(int,input().split())
count=0
for n1 in n:
  if N>k:
    count+=1
  ekse:
    print(0)
pribt(count)


Fixed submission:
N, K = map(int, input().split())
h = list(map(int, input().split()))
count = 0
for i in h:
    if i >= K:
      count+=1
print(count)
Buggy python submission (verdict: Runtime Error):
w = input()
 
s = "Sunny"
c = "Cloudy"
r = "Rainy"
 
if w == s:
  print(c)
elif w == c:
  print(r)
else w == r:
  print(s)

Fixed submission:
w = input()

s = "Sunny"
c = "Cloudy"
r = "Rainy"
 
if w == s:
  print(c)
elif w == c:
  print(r)
else:
  print(s)

Buggy python submission (verdict: Runtime Error):
w = input()

s = "Sunny"
c = "Cloudy"
r = "Rainy"

if w == s:
  print(c)
elif w == c:
  print(r)
else w == r:
  print(s)

Fixed submission:
w = input()

s = "Sunny"
c = "Cloudy"
r = "Rainy"
 
if w == s:
  print(c)
elif w == c:
  print(r)
else:
  print(s)

Buggy python submission (verdict: Runtime Error):
w = input()
s = "sunny"
c = "cloudy"
r = "rainy"
if w == s:
     print(c)
elif w == c:
     print(r)
else w == r:
     print(s)

Fixed submission:
w = input()

s = "Sunny"
c = "Cloudy"
r = "Rainy"
 
if w == s:
  print(c)
elif w == c:
  print(r)
else:
  print(s)
Buggy python submission (verdict: Runtime Error):
s=input()
rud=["R","U","D"]
lud=["L","U","D"]
if rud in s[::2] and lud in s[1::2]:
  print("Yes")
else:
  print("No")

Fixed submission:
s=input()
if "L" in s[::2] or "R" in s[1::2]:
  print("No")
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):

Copy
Copy
s = input()
k = s[::2]
g = s[1::2]
 
if (k in "R" or "U" or "D") and (g in "L" or "U" or "D"):
  print("Yes")
else:
  print("No")

Fixed submission:
s=input()
if "L" in s[::2] or "R" in s[1::2]:
  print("No")
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):
s = input()
k = s[::2]
g = s[1::2]
 
if (k in "R" or "U" or "D") and (g in "L" or "U" or "D":)
  print("Yes")
else:
  print("No")

Fixed submission:
s=input()
if "L" in s[::2] or "R" in s[1::2]:
  print("No")
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):
s = input()
k = s[::2]
g = s[1::2]
 
if (k == "R" or "U" or "D") and (g == "L" or "U" or "D":)
  print("Yes")
else:
  print("No")

Fixed submission:
s=input()
if "L" in s[::2] or "R" in s[1::2]:
  print("No")
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):
s = input()
k = s[::2]
g = s[1::2]
 
if k in "R","U","D" and g in "L","U","D":
  print("Yes")
else:
  print("No")

Fixed submission:
s=input()
if "L" in s[::2] or "R" in s[1::2]:
  print("No")
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):
s = input()
k = s[::2]
g = s[1::2]

if k == "R","U","D" and g == "L","U","D":
  print("Yes")
else:
  print("No")


Fixed submission:
s=input()
if "L" in s[::2] or "R" in s[1::2]:
  print("No")
else:
  print("Yes")
Buggy python submission (verdict: Runtime Error):
s,t=input().split()
if s==t:
  print(3)
elif s!=t:
  for i in range(3):
    if s[i]==t[i]:
      i+=1
      print(i)

Fixed submission:
s = input()
t = input()
 
count = 0
 
for i in range(3):
		if s[i] == t[i]:
			count += 1  
    
print(count)

Buggy python submission (verdict: Runtime Error):
s = input()
t = input()
 
count = 0
 
for i in range(3):
	if s[i] == t[i]:
	count += 1  
  	print(count)

Fixed submission:
s = input()
t = input()
 
count = 0
 
for i in range(3):
		if s[i] == t[i]:
			count += 1  
    
print(count)

Buggy python submission (verdict: Runtime Error):
s = input()
t = input()
 
count = 0
 
for i in range(3):
	if s[i] == t[i]
	count += 1  
  	print(count)

Fixed submission:
s = input()
t = input()
 
count = 0
 
for i in range(3):
		if s[i] == t[i]:
			count += 1  
    
print(count)

Buggy python submission (verdict: Runtime Error):
s = input()
t = input()

count = 0

for i in range(3)
	if s[i] == t[i]
	count += 1  
  	print(count)

Fixed submission:
s = input()
t = input()
 
count = 0
 
for i in range(3):
		if s[i] == t[i]:
			count += 1  
    
print(count)

Buggy python submission (verdict: Runtime Error):
s = input()
t = input()

count = 0

if s[i] == t[i]:
  count += 1
  print(count)

Fixed submission:
s = input()
t = input()
 
count = 0
 
for i in range(3):
		if s[i] == t[i]:
			count += 1  
    
print(count)

Buggy python submission (verdict: Runtime Error):
a, b, c = input()
d, e, f = input()
if a == d and b == e and c == f:
  print(3)
elif a == b and b == e:
  print(2)
elif b == e and c == f:
  print(2)
elif c == f and a == b:
  print(2)
elif a == d or b == e or c == f:
  print(1)
elif a != d and b != e and c != f:
  peint(0)
else:
  pass

Fixed submission:
s = input()
t = input()
 
count = 0
 
for i in range(3):
		if s[i] == t[i]:
			count += 1  
    
print(count)

Buggy python submission (verdict: Runtime Error):
a, b, c = input()
d, e, f = input()
if a == d and b == e and c == f:
  print(3)
elif a == b and b == e, b == e and c == f, c == f and a == b:
  print(2)
elif a == d or b == e or c == f:
  print(1)
else:
  peint(0)

Fixed submission:
s = input()
t = input()
 
count = 0
 
for i in range(3):
		if s[i] == t[i]:
			count += 1  
    
print(count)

Buggy python submission (verdict: Runtime Error):
a, b, c = input()
d, e, f = input()
if a == d and b == e and c == f:
  print(3)
elif a == b and b == e:
  print(2)
elif b == e and c == f:
  print(2)
elif c == f and a == b:
  print(2)
elif a == d or b == e or c == f:
  print(1)
else:
  peint(0)

Fixed submission:
s = input()
t = input()
 
count = 0
 
for i in range(3):
		if s[i] == t[i]:
			count += 1  
    
print(count)

Buggy python submission (verdict: Runtime Error):
a, b, c = input()
d, e, f = input()
if a, b, c == d, e, f:
  print(3)
elif a == b and b == e:
  print(2)
elif b == e and c == f:
  print(2)
elif c == f and a == b:
  print(2)
elif a == d or b == e or c == f:
  print(1)
else:
  peint(0)

Fixed submission:
s = input()
t = input()
 
count = 0
 
for i in range(3):
		if s[i] == t[i]:
			count += 1  
    
print(count)
Buggy python submission (verdict: Runtime Error):
a = int(input)
s = input()
if a >= 3200:
  print(s)
else:
  print("red")

Fixed submission:
a = int(input())
s = input()
if a >= 3200:
  print(s)
else:
  print("red")

Buggy python submission (verdict: Runtime Error):
a=int(input())
s=input()
if a >= 3200:
  proint("red")
else:
  print(s)

Fixed submission:
a = int(input())
s = input()
if a >= 3200:
  print(s)
else:
  print("red")
Buggy python submission (verdict: Runtime Error):
n=int(input())
a_list=list(map(int,input().split()))
print(1/sum(1/a for a in range(a_list)))

Fixed submission:
n=int(input())
a_list=list(map(int,input().split()))
print(1/sum(1/a for a in a_list))

Buggy python submission (verdict: Runtime Error):
n=int(input())
a=[int(input()) for i in range(n)]
for result in range(n):
  1//(1//(a*n))
  print(result)

Fixed submission:
n=int(input())
a_list=list(map(int,input().split()))
print(1/sum(1/a for a in a_list))
Buggy python submission (verdict: Runtime Error):
A, B = [int(input()) for _ in range(2)]
 
P = A + B
M = A - B
T = A * B
 
lst = [P, M, T]
print(max(lst))


Fixed submission:
A, B = map(int, input().split())

P = A + B
M = A - B
T = A * B

print(max(P, M, T))

Buggy python submission (verdict: Runtime Error):
A, B = [int(input()) for _ in range(2)]
 
P = A + B
M = A - B
T = A * B
 
li = [P, M, T]
print(max(li))


Fixed submission:
A, B = map(int, input().split())

P = A + B
M = A - B
T = A * B

print(max(P, M, T))

Buggy python submission (verdict: Runtime Error):
A, B = [int(input()) for _ in range(2)]
 
P = A + B
M = A - B
T = A * B
 
list = [P, M, T]
print(max(list))

Fixed submission:
A, B = map(int, input().split())

P = A + B
M = A - B
T = A * B

print(max(P, M, T))

Buggy python submission (verdict: Runtime Error):
A, B = [int(input()) for _ in range(2)]
 
P = A + B
M = A - B
T = A * B
 
list = [P, M, T]
print(list(max))

Fixed submission:
A, B = map(int, input().split())

P = A + B
M = A - B
T = A * B

print(max(P, M, T))

Buggy python submission (verdict: Runtime Error):
A, B = [int(input()) for _ in range(2)]

P = A + B
M = A - B
T = A * B

if P > M or P > T:
  print(P)
elif M > P or M > T:
  print(M)
elif T > M or T > P:
  print(T)
else:
  pass

Fixed submission:
A, B = map(int, input().split())

P = A + B
M = A - B
T = A * B

print(max(P, M, T))
Buggy python submission (verdict: Runtime Error):
1 K, X = map(int, input().split())
2 print(' '.join(map(str, range(X - K + 1, X + K))))

Fixed submission:
K, X = map(int, input().split())
print(' '.join(map(str, range(X - K + 1, X + K))))
Buggy python submission (verdict: Runtime Error):
zn=int(input())
p=[int(i) for i in input().split()]
count=0
for i in range(n-1):
    for j in range(i+1,n):
        #print(p[i],p[j])
        if p[i]>p[j]:
            count+=1
if count>=3:
    print("NO")
else:
    print("YES")


Fixed submission:
n=int(input())
p=[int(i) for i in input().split()]
count=0
P=sorted(p)
for i in range(n):
    if p[i]!=P[i]:
        count+=1
if count==2 or count==0:
    print("YES")
else:
    print("NO")
Buggy python submission (verdict: Runtime Error):
s=sorted(input())
print("Yes" if s[0]==s[1] and s[2]==s[3] and s[0]!==s[2] else "No")

Fixed submission:
s=sorted(input())
print("Yes" if s[0]==s[1] and s[2]==s[3] and s[0]!=s[2] else "No")

Buggy python submission (verdict: Runtime Error):
s=sorted(input())
print("Yes" if s[0]==s[1] and s[2]==s[3 else "No"])


Fixed submission:
s=sorted(input())
print("Yes" if s[0]==s[1] and s[2]==s[3] and s[0]!=s[2] else "No")
Buggy python submission (verdict: Runtime Error):
s=int(input())
print("Good" if s[0]!=s[1] or s[1]!=s[2] or s[2]!=s[3] else "Bad")

Fixed submission:
s=input()
print("Bad" if s[0]==s[1] or s[1]==s[2] or s[2]==s[3] else "Good")

Buggy python submission (verdict: Runtime Error):
s=int(input())
print("Good" if s[0]==s[1] or s[1]==s[2] or s[2]==s[3] else "Bad")

Fixed submission:
s=input()
print("Bad" if s[0]==s[1] or s[1]==s[2] or s[2]==s[3] else "Good")
Buggy python submission (verdict: Runtime Error):
n,l=map(int,input().split())
taste_list=[]
for i in range(1,n+1):
    taste_list.append(l+i-1)
#taste=sum(taste_list)
if taste_list[0]>0:
    print(taste-taste_list[0])
else:
    print(taste-taste_list[n-1])

Fixed submission:
n,l=map(int,input().split())
taste_list=[]
for i in range(1,n+1):
    taste_list.append(l+i-1)
taste=sum(taste_list)
if taste_list[0]>0:
    print(taste-taste_list[0])
elif 0 in taste_list:
    print(taste)
else:
    print(taste-taste_list[n-1])

Buggy python submission (verdict: Runtime Error):
n,l=map(int,input().split())
taste_list=[]
for i in range(1,n+1):
    taste_list.append(l+i-1)
if taste_list[0]>0:
    print(taste-taste_list[0])
elif taste_list[0]<0:
    print(taste-taste_list[n-1])

Fixed submission:
n,l=map(int,input().split())
taste_list=[]
for i in range(1,n+1):
    taste_list.append(l+i-1)
taste=sum(taste_list)
if taste_list[0]>0:
    print(taste-taste_list[0])
elif 0 in taste_list:
    print(taste)
else:
    print(taste-taste_list[n-1])
Buggy python submission (verdict: Runtime Error):
pqr=[int(input() for i in range(3))]
pqr.sort()
print(pqr[0]+pqr[1])

Fixed submission:
p,q,r=map(int,input().split())
pqr=[p,q,r]
pqr.sort()
print(pqr[0]+pqr[1])
Buggy python submission (verdict: Runtime Error):
n,k=map(int,input().split())
s=input()
s[k-1]=s[k-1].lower()
print(s)

Fixed submission:
n,k=map(int,input().split())
s=input()
print(s[:k-1]+s[k-1].lower()+s[k:])

Buggy python submission (verdict: Runtime Error):
n,k=map(int,input().split())
s=input()
print(s[k].lower())

Fixed submission:
n,k=map(int,input().split())
s=input()
print(s[:k-1]+s[k-1].lower()+s[k:])
Buggy python submission (verdict: Runtime Error):
print("Heisei" if int(input().replace("/", ""))<=20190430 else "TBD"

Fixed submission:
a=input()
print("Heisei" if int(a.replace("/", ""))<=20190430 else "TBD")

Buggy python submission (verdict: Runtime Error):
a=input()
a.replace("/", "")
print("Heisei" if int(a)<=20190430 else "TBD")

Fixed submission:
a=input()
print("Heisei" if int(a.replace("/", ""))<=20190430 else "TBD")

Buggy python submission (verdict: Runtime Error):
a=input()
a.replace("/", "")
print("Heisei" if int(a)<=2019430 else "TBD")

Fixed submission:
a=input()
print("Heisei" if int(a.replace("/", ""))<=20190430 else "TBD")

Buggy python submission (verdict: Runtime Error):
a=input()
a.replace("/","")
print("Heisei" if int(a)<=2019430 else "TBD")

Fixed submission:
a=input()
print("Heisei" if int(a.replace("/", ""))<=20190430 else "TBD")

Buggy python submission (verdict: Runtime Error):
a=int(input())
a.replace("/","")
print("Heisei" if a<=2019430 else "TBD")

Fixed submission:
a=input()
print("Heisei" if int(a.replace("/", ""))<=20190430 else "TBD")

Buggy python submission (verdict: Runtime Error):
a=int(input())
a.remove("/","")
print("Heisei" if a<=2019430 else "TBD")

Fixed submission:
a=input()
print("Heisei" if int(a.replace("/", ""))<=20190430 else "TBD")

Buggy python submission (verdict: Runtime Error):
a=int(input())
a.rempve("/","")
print("Heisei" if a<=2019430 else "TBD")

Fixed submission:
a=input()
print("Heisei" if int(a.replace("/", ""))<=20190430 else "TBD")
Buggy python submission (verdict: Runtime Error):
N, A, B= map(int, input().split())
print(min(N, A, B)
if A==B:
	print(A)
elif A>B:
	  print(A-B)
elif:
	  printt(B-A)
else:
      pass

Fixed submission:
N, A, B= map(int, input().split())
print(min(A, B), max(0, A + B - N))
Buggy python submission (verdict: Runtime Error):
n=int(input())print("Hello World" if n==1 else a=int(input() b=int(input() print(a+b)))

Fixed submission:
n=int(input())
if n==1:
  print("Hello World")
else:
  a=int(input())
  b=int(input())
  print(a+b)

Buggy python submission (verdict: Runtime Error):
n=int(input());print("Hello World" if n==1 else a=int(input() b=int(input() a+b)))

Fixed submission:
n=int(input())
if n==1:
  print("Hello World")
else:
  a=int(input())
  b=int(input())
  print(a+b)

Buggy python submission (verdict: Runtime Error):
n=int(input())
a=int(input())
b=int(input())
print("Hello World" if n==1 else a+b)

Fixed submission:
n=int(input())
if n==1:
  print("Hello World")
else:
  a=int(input())
  b=int(input())
  print(a+b)
Buggy python submission (verdict: Runtime Error):
a, b, c =input().split()
a.replace("1","9")
b.replace("1","9")
c.replace("1","9")
print(a+b+c)

Fixed submission:
a=int(input())
print(1110-a)

Buggy python submission (verdict: Runtime Error):
a=(input()
print(a.replace("1", "9"))

Fixed submission:
a=int(input())
print(1110-a)
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int,input().split())
x=[a,b,c]
x.sort()
print(int((x[2]+x[1])+x[0])

Fixed submission:
a,b,c=sorted(map(int,input().split()))
print(10*c+b+a)

Buggy python submission (verdict: Runtime Error):
a,b,c = [input() for i in range(3)]
a.sort()
print(int((a[2]+a[1])+a[0])

Fixed submission:
a,b,c=sorted(map(int,input().split()))
print(10*c+b+a)

Buggy python submission (verdict: Runtime Error):
a = [input() for i in range(3)]
a.sort()
print(int((a[2]+a[1])+a[0])

Fixed submission:
a,b,c=sorted(map(int,input().split()))
print(10*c+b+a)

Buggy python submission (verdict: Runtime Error):
a=[int(input()) for i in range(3)]
a.sort()
print((a[2]*10)+a[1]+a[0])

Fixed submission:
a,b,c=sorted(map(int,input().split()))
print(10*c+b+a)
Buggy python submission (verdict: Runtime Error):
k=int(inout())
if k%2==0:
  print((k/2)**2)
elif k%2==1:
  print((k/2)*(k/2+1))

Fixed submission:
k=int(input())
if k%2==0:
  print(int((k/2))**2)
elif k%2==1:
  print(int((k/2))*int((k/2+1)))
Buggy python submission (verdict: Runtime Error):
n, k=map(int, input().split());print(0 if n%k==o else 1)

Fixed submission:
n, k=map(int, input().split());print(0 if n%k==0 else 1)

Buggy python submission (verdict: Runtime Error):
n, k=map(int,input().split());print(0 if n%k==o else 1)

Fixed submission:
n, k=map(int, input().split());print(0 if n%k==0 else 1)
Buggy python submission (verdict: Runtime Error):
a=input()
print("ABC" if a<1000 else "ABD")

Fixed submission:
a = int(input())
if a > 999:
  print("ABD")
else:
  print("ABC")
Buggy python submission (verdict: Runtime Error):
s = input()
print(700 + int(s.count(o)*100))

Fixed submission:
s = input()
print(700 + int(s.count("o")*100))

Buggy python submission (verdict: Runtime Error):
s = input()
print(700 + int(s.count(o)))

Fixed submission:
s = input()
print(700 + int(s.count("o")*100))

Buggy python submission (verdict: Runtime Error):
s = input()
print(700 + s.count(o))

Fixed submission:
s = input()
print(700 + int(s.count("o")*100))

Buggy python submission (verdict: Runtime Error):
s = input().split()
print(700 + s.count(o))

Fixed submission:
s = input()
print(700 + int(s.count("o")*100))
Buggy python submission (verdict: Runtime Error):
a = input()
b = ["a","b","c"]
if b in a:
  print("Yes")
else:
  print("No")

Fixed submission:
a = input()
if "a" in a and "b" in a and "c" in a:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
a, b c = input().split()
print(a[0]+b[1]+c[2])

Fixed submission:
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])
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 = int(input)
print(48-a)

Fixed submission:
a = int(input())
print(48-a)
Buggy python submission (verdict: Runtime Error):
inport math
a, b = map(int, input().split())
x = (a + b)/2
print(math.ceil(x))

Fixed submission:
import math
a, b = map(int,input().split())
x = (a + b)/2
print(math.ceil(x))

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

Fixed submission:
import math
a, b = map(int,input().split())
x = (a + b)/2
print(math.ceil(x))

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

Fixed submission:
import math
a, b = map(int,input().split())
x = (a + b)/2
print(math.ceil(x))

Buggy python submission (verdict: Runtime Error):
a, b = int(input())
x = (a+b)/2
print(int(x))

Fixed submission:
import math
a, b = map(int,input().split())
x = (a + b)/2
print(math.ceil(x))

Buggy python submission (verdict: Runtime Error):
a, b = int(input())
x = (a+b)/2
print(x)

Fixed submission:
import math
a, b = map(int,input().split())
x = (a + b)/2
print(math.ceil(x))
Buggy python submission (verdict: Runtime Error):
a = int(input())
print(a.count(0))

Fixed submission:
a = input()
print(a.count("1"))

Buggy python submission (verdict: Runtime Error):
a = int(input())
print(a.count(o)) 

Fixed submission:
a = input()
print(a.count("1"))
Buggy python submission (verdict: Runtime Error):
n,a = map(int,input().split())
print((n*n)-a)

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

print((n*n)-a)

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

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

print((n*n)-a)
Buggy python submission (verdict: Runtime Error):
x, a, b = map(int, input().split())
xa = abs(x-a)
xb = abs(x-b)
if xa < xb:
  print(A)
elif xa > xb:
  print(B)

Fixed submission:
x, a, b = map(int, input().split())
xa = abs(x-a)
xb = abs(x-b)
if xa < xb:
  print("A")
elif xa > xb:
  print("B")

Buggy python submission (verdict: Runtime Error):
x, a, b = map(int, input().split())
xa = abs(x-a)
xb = abs(x-b)
if xa < xb:
  print(A)
else:
  print(B)

Fixed submission:
x, a, b = map(int, input().split())
xa = abs(x-a)
xb = abs(x-b)
if xa < xb:
  print("A")
elif xa > xb:
  print("B")

Buggy python submission (verdict: Runtime Error):
x, a, b = map(int, input().split())
xa = abs(x-a)
xb = abs(x-b)
if xa > xb:
  print(A)
else:
  print(B)

Fixed submission:
x, a, b = map(int, input().split())
xa = abs(x-a)
xb = abs(x-b)
if xa < xb:
  print("A")
elif xa > xb:
  print("B")
Buggy python submission (verdict: Runtime Error):
sorted(a) = list[map(int, input().split(,))]
if a[0] == a[1]:
  print("Yes")
els:
  print("No")

Fixed submission:
n = input()
if n[0] == n[2]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
sorted(a) = list[map(int, input().split())]
if a[0] == a[1]:
  print("Yes")
els:
  print("No")

Fixed submission:
n = input()
if n[0] == n[2]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
a = list[map(int, input().split())]
if a[0] == a[1]:
  print("Yes")
els:
  print("No")

Fixed submission:
n = input()
if n[0] == n[2]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
sorted(a) = int(input())
if a[0] == a[1]:
  print("Yes")
els:
  print("No")

Fixed submission:
n = input()
if n[0] == n[2]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
a = int(input())
a.sort()
if a[0] == a[1]:
  print("Yes")
els:
  print("No")

Fixed submission:
n = input()
if n[0] == n[2]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
a = int(input())
if a[0] == a[2]:
  print("Yes")
els:
  print("No")

Fixed submission:
n = input()
if n[0] == n[2]:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
if a % 3 == 0 and b % 3 != 0 and (a + b) % 3 != 0:
  print("Possible")
elif b % 3 == 0 and a % 3 != 0 and (a + b) % 3 != 0:
  print("Possible")
elif (a + b) % 3 == 0 and a % 3 != 0 and b % 3 != 0:
  print("Possible")
else:
  ("Inpossible")

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):
a, b, c = map(int, input().split())
if a % 3 == 0 and b % 3 != 0 and (a + b) % 3 != 0:
  print("Possible")
elif b % 3 == 0 and a % 3 != 0 and (a + b) % 3 != 0:
  print("Possible")
elif (a + b) % 3 == 0 and a % 3 != 0 and a % 3 != 0:
  print("Possible")
else:
  ("Inpossible")

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):
a, b, c = map(int, input().split())
if a % 3 == 0 and b % 3 != 0 and (a + b) % 3 != 0:
  print("possible")
elif b % 3 == 0 and a % 3 != 0 and (a + b) % 3 != 0:
  print("possible")
elif (a + b) % 3 == 0 and a % 3 != 0 and a % 3 != 0:

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):
a, b, c = map(int, input().split())
ab = a + b
bc = b + c
ac = a + c
if ab > ac, bc:
  print(ab)
elif bc > ab, ac:
  print(bc)
else:
  print(ac)

Fixed submission:
a, b, c = map(int, input().split())
ab = a + b
bc = b + c
ac = a + c
if ab < ac and ab < bc:
  print(ab)
elif bc < ab and bc < ac:
  print(bc)
else:
  print(ac)