Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
n = list(input())
if int(n[0]) == 7:
	print("Yes")
else:
	if int(n[1]) == 7:
    	print("Yes")
    else:
		if int(n[2]) == 7:
			print("Yes")
        else:
        print("No")
      

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

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

Fixed submission:
n = list(input())
if int(n[0]) == 7:
    print("Yes")
else:
    if int(n[1]) == 7:
        print("Yes")
    else:
        if int(n[2]) == 7:
            print("Yes")
        else:
            print("No")
Buggy python submission (verdict: Runtime Error):
days = input()
if days.contains("RRR"):
    print("3")
elif days.contains("RR"):
    print("2")
elif days.contains("R"):
    print("1")
else:
    print("0")

Fixed submission:
s = input().upper()
if s.count('RRR') == 1:
  print(3)
elif s.count('RR') == 1:
  print(2)
elif s.count('R') > 0:
  print(1)
else:
  print(0)

Buggy python submission (verdict: Runtime Error):
S = input()
if S.contains("RRR"):
    print("3")
elif S.contains("RR"):
    print("2")
elif S.contains("R"):
    print("1")
else:
    print("0")

Fixed submission:
s = input().upper()
if s.count('RRR') == 1:
  print(3)
elif s.count('RR') == 1:
  print(2)
elif s.count('R') > 0:
  print(1)
else:
  print(0)
Buggy python submission (verdict: Runtime Error):
num=int(input())
if num[:-1]==0 or num[:-1]==1 or num[:-1]==6 or num[:-1]==8:
  print("pon")
elis num[:-1]==3:
  print("bon")
else:
  print("hon")

Fixed submission:
n = input()
if n[-1] == "3":
    print("bon")
elif n[-1] == "0" or n[-1] == "1" or n[-1] == "6" or n[-1] == '8':
    print("pon")
else:
    print("hon")

Buggy python submission (verdict: Runtime Error):
num=int(input())
if num[:-1]==0 or num[:-1]==1 or num[:-1]==6 or num[:-1]==0:
  print("pon")
elis num[:-1]==3:
  print("bon")
else:
  print("hon")

Fixed submission:
n = input()
if n[-1] == "3":
    print("bon")
elif n[-1] == "0" or n[-1] == "1" or n[-1] == "6" or n[-1] == '8':
    print("pon")
else:
    print("hon")
Buggy python submission (verdict: Runtime Error):
k=int(input())
s=input()
print(S[:K]) if len(S) <= K else print(S[:K] + "...")

Fixed submission:
K=int(input())
S=input()
print(S[:K]) if len(S) <= K else print(S[:K] + "...")
Buggy python submission (verdict: Runtime Error):
n=input()
if A in n and B in n:
  print("YES")
else:
  print("NO")

Fixed submission:
a = input()
if 'A' in a and 'B' in a:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Time Limit Exceeded):
s = input()
n = int(input())
for i in range(n):
    a = input().split()
    if len(a) == 1:
        s = s[::-1]
    else:
        t, c = int(a[1]),a[2]
        if t == 1:
            s = c+s
        else:
            s = s + c
print(s)

Fixed submission:
s = input()
q = int(input())
qs = [input().split() for i in range(q)]
n = False
left= right = ""
for operation in qs:
    if operation[0] == '1':
        n = not n
    if operation[0] == '2':
        t , f, c = operation
        f = int(f)
        if n:
            f = 1 if f != 1 else 2
        if f == 1:
            left=c+left
        elif f == 2:
            right+=c
s = left+s+right
print(s[::-1] if n else s)
Buggy python submission (verdict: Runtime Error):
n=input()
if(n%2==0):
  print(n/2)
else:
  print((n/2)+1)

Fixed submission:
N = int(input())

if N % 2 == 0:
    print(N//2)
else:
    print(N//2+1)
Buggy python submission (verdict: Runtime Error):
1n = input()
_list = input().split(" ")
_list = [int(x) for x in _list]
even = [x for x in _list if x % 2==0]
answer = []
for x in even:
    if x % 3 == 0 or x % 5 == 0:
        answer.append(True)
if len(even) ==len(answer):
    print("APPROVED")
else:
    print("DENIED")

Fixed submission:
n = input()
_list = input().split(" ")
_list = [int(x) for x in _list]
even = [x for x in _list if x % 2==0]
answer = []
for x in even:
    if x % 3 == 0 or x % 5 == 0:
        answer.append(True)
if len(even) ==len(answer):
    print("APPROVED")
else:
    print("DENIED")
Buggy python submission (verdict: Runtime Error):
, a = map(int, input().split())

i = 0

while h > 0:
    h = h - a
    i += 1

print(i)

Fixed submission:
H = input()
arr = [int(i) for i in H.split(' ')]
count = 1
if(arr[0]<arr[1]):
	print(count)
else:
	while arr[0]>arr[1]:
		arr[0] = arr[0] - arr[1]
		count = count + 1
	print(count)
Buggy python submission (verdict: Runtime Error):
a,b,c= map(int, input())
if(a+b+c)>=22:
    print("bust")
else:
    print("win")

Fixed submission:
a = [int(i) for i in input().split(" ")]
print("bust") if sum(a) >= 22 else print("win")

Buggy python submission (verdict: Runtime Error):
a= int(input())
b= int(input())
c= int(input())
if(a+b+c)>=22:
    print("bust")
else:
    print("win")

Fixed submission:
a = [int(i) for i in input().split(" ")]
print("bust") if sum(a) >= 22 else print("win")

Buggy python submission (verdict: Runtime Error):
a=input()
b=input()
c=input()
if(a+b+c) %2==0:
    print("bust")
else:
    print("win")

Fixed submission:
a = [int(i) for i in input().split(" ")]
print("bust") if sum(a) >= 22 else print("win")
Buggy python submission (verdict: Runtime Error):
n=int(input())  
l=0
for i in range(len(str(n))): 
  l=l+int(n[i])
if((l%9)==0): 
  print("Yes") 
else: 
  print("No") 
  


Fixed submission:
n=input() 
l=[] 
for i in range(len(str(n))): 
  l.append(int(n[i])) 
if((sum(l)%9)==0): 
  print("Yes") 
else: 
  print("No")

Buggy python submission (verdict: Runtime Error):
n=int(input())  
l=[] 
for i in range(len(str(n))): 
  l.append(int(n[i])) 
if((sum(l)%9)==0): 
  print("Yes") 
else: 
  print("No") 
  

Fixed submission:
n=input() 
l=[] 
for i in range(len(str(n))): 
  l.append(int(n[i])) 
if((sum(l)%9)==0): 
  print("Yes") 
else: 
  print("No")
Buggy python submission (verdict: Runtime Error):
n = int(input())
count = 0
for i in range(n):
    if i == 0:
        count = 0
    else:
        if n % i == 0:
            count += (n//i) -1
        else:
            count += (n//i)
print(count)

Fixed submission:
s = input()
if s[-1:] == "s":
    print(s + "es")
else :
    print(s + "s")

Buggy python submission (verdict: Runtime Error):
n = int(input())
d = [list(map(int, input().split())) for i in range(n)]
count = 0
jail = False
for i in range(n):
    if d[i][0] == d[i][1]:
        count += 1
        if count == 3:
            jail = True
            break        
    else: count = 0
if jail == True:
    print("Yes")
else : print("No")


Fixed submission:
s = input()
if s[-1:] == "s":
    print(s + "es")
else :
    print(s + "s")
Buggy python submission (verdict: Runtime Error):
import sys
import os
f = open('input.txt', 'r')
sys.stdin = f
S = input()
T = input()
n = len(S)
ans = 0
for i in range(n):
    if (S[i]!=T[i]):
        ans += 1
print(ans)


Fixed submission:
S = input()
T = input()
n = len(S)
ans = 0
for i in range(n):
    if (S[i]!=T[i]):
        ans += 1
print(ans)
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=0
xy = [map(int, input().split()) for _ in range(a)]
x, y = [list(i) for i in zip(*xy)]
for i in range(a-2):
  if x[i]==y[i] and x=[i+1]==y[i+1] and x=[i+2]==y[i+2]:
    b=b+1
if b==0:
  print("No")
else:
  print("Yes")

Fixed submission:
a=int(input())
b=0
xy = [map(int, input().split()) for _ in range(a)]
x, y = [list(i) for i in zip(*xy)]
for i in range(a-2):
  if x[i]==y[i] and x[i+1]==y[i+1] and x[i+2]==y[i+2]:
    b=b+1
if b==0:
  print("No")
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=0
xy = [map(int, input().split()) for in range(a)]
for i in range(a-2):
  if a[i]==a[i+1]==a[i+2]:
    b=b+1
if b==0:
  print("No")
else:
  print("Yes")

Fixed submission:
a=int(input())
b=0
xy = [map(int, input().split()) for _ in range(a)]
x, y = [list(i) for i in zip(*xy)]
for i in range(a-2):
  if x[i]==y[i] and x[i+1]==y[i+1] and x[i+2]==y[i+2]:
    b=b+1
if b==0:
  print("No")
else:
  print("Yes")
Buggy python submission (verdict: Runtime Error):
a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
if a>0:
  if b*d>a*c
    print(b*d)
  else:
    print(a*c)
else:
  if a*c>b*d:
    print(a*c)
  else:
    print(b*d)

Fixed submission:
a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
if a>0:
  if d>0:
    print(b*d)
  else:
    print(a*d)
else:
  if b>0:
    if d>0:
      if b*d>a*c:
        print(b*d)
      else:
        print(a*c)
    else:
      print(a*c)
  else:
    if c>0:
      print(b*c)
    else:
      print(a*c)
Buggy python submission (verdict: Runtime Error):
A,B,C=input().split()
A=int(A)
B=int(B)
C=int(C)
D=A/B
D=int(D)
if A%B=0:
  print((D)*C)
else:
  print((D+1)*C)

Fixed submission:
A,B,C=input().split()
A=int(A)
B=int(B)
C=int(C)
D=A/B
D=int(D)
if A%B==0:
  print((D)*C)
else:
  print((D+1)*C)
Buggy python submission (verdict: Time Limit Exceeded):
a=int(input())
b=list(map(int,input().split()))
c=0
if a==0:
  print(0)
else:
  for i in range(a-1):
    while b[i]>b[i+1]:
      b[i+1]=b[i+1]+1
      c=c+1
  print(c)

Fixed submission:
a=int(input())
b=list(map(int,input().split()))
c=0
for i in range(a-1):
  if b[i]>b[i+1]:
    c=c+b[i]-b[i+1]
    b[i+1]=b[i]
print(c)

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=0
for i in range(a):
  if b[i]>b[i+1]:
    b[i+1]=b[i+1]+1
    c=c+1
print(c)

Fixed submission:
a=int(input())
b=list(map(int,input().split()))
c=0
for i in range(a-1):
  if b[i]>b[i+1]:
    c=c+b[i]-b[i+1]
    b[i+1]=b[i]
print(c)
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
for i in range(a):
  c=c*b[i]
  if c>1000000000000000000:
    print(-1)
    break
print(c)

Fixed submission:
a=int(input())
b=list(map(int,input().split()))
c=1
b.sort()
if b[0]==0:
  print(0)
else:
  for i in range(a):
    c=c*b[-i]
    if c>1000000000000000000:
      break
  if c>1000000000000000000:
    print(-1)
  else:
    print(c)

Buggy python submission (verdict: Time Limit Exceeded):
a=int(input())
b=list(map(int,input().split()))
c=1
for i in range(a):
  c=c*b[i]
if c>1000000000000000000:
  print(-1)
else:
  print(c)

Fixed submission:
a=int(input())
b=list(map(int,input().split()))
c=1
b.sort()
if b[0]==0:
  print(0)
else:
  for i in range(a):
    c=c*b[-i]
    if c>1000000000000000000:
      break
  if c>1000000000000000000:
    print(-1)
  else:
    print(c)
Buggy python submission (verdict: Runtime Error):
a=input()
b=input()
c=0
if (len(a)+1)!=len(b):
  print("No")
else:
  for i in range(len(b)):
    if a[i]==b[i]:
      c=c+1
  if c==len(a):
    print("Yes")
  else:
    print("No")

Fixed submission:
a=input()
b=input()
c=0
if (len(a)+1)!=len(b):
  print("No")
else:
  for i in range(len(a)):
    if a[i]==b[i]:
      c=c+1
  if c==len(a):
    print("Yes")
  else:
    print("No")

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

Fixed submission:
a=input()
b=input()
c=0
if (len(a)+1)!=len(b):
  print("No")
else:
  for i in range(len(a)):
    if a[i]==b[i]:
      c=c+1
  if c==len(a):
    print("Yes")
  else:
    print("No")
Buggy python submission (verdict: Time Limit Exceeded):
a=int(input())
i=100//a
f=0
while i<1:
  i=i+i//100
  f=f+1
print(f)


Fixed submission:
a=int(input())
i=100
f=0
while i<a:
  i=i+i//100
  f=f+1
print(f)

Buggy python submission (verdict: Time Limit Exceeded):
a=int(input())
i=100
f=0
while i<a:
  if a>100000:
    a=a/100000
    i=i//100000
  i=int(i*1.01)
  f=f+1
print(f)


Fixed submission:
a=int(input())
i=100
f=0
while i<a:
  i=i+i//100
  f=f+1
print(f)

Buggy python submission (verdict: Time Limit Exceeded):
a=int(input())
i=100
f=0
while i<a:
  if a>100000:
    a=a/100000
    i=i/100000
  i=int(i*1.01)
  f=f+1
print(f)


Fixed submission:
a=int(input())
i=100
f=0
while i<a:
  i=i+i//100
  f=f+1
print(f)

Buggy python submission (verdict: Time Limit Exceeded):
a=int(input())
i=100//a
f=0
while i<1:
  i=i+i//100
  f=f+1
print(f)


Fixed submission:
a=int(input())
i=100
f=0
while i<a:
  i=i+i//100
  f=f+1
print(f)

Buggy python submission (verdict: Time Limit Exceeded):
a=int(input())
i=100//a
f=0
while i<1:
  i=int(i*1.01)
  f=f+1
print(f)


Fixed submission:
a=int(input())
i=100
f=0
while i<a:
  i=i+i//100
  f=f+1
print(f)

Buggy python submission (verdict: Time Limit Exceeded):
a=int(input())
i=100/a
f=0
while i<1:
  i=int(i*1.01)
  f=f+1
print(f)


Fixed submission:
a=int(input())
i=100
f=0
while i<a:
  i=i+i//100
  f=f+1
print(f)
Buggy python submission (verdict: Runtime Error):
a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
while true:
  c=c-b
  if c<=0:
    print("Yes")
    break
  a=a-d
  if a<=0:
    print("No")
    break

Fixed submission:
a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
e=0
while e==0:
  c=c-b
  if c<=0:
    print("Yes")
    break
  a=a-d
  if a<=0:
    print("No")
    break
Buggy python submission (verdict: Time Limit Exceeded):
a,b=input().split()
a=int(a)
b=int(b)
x=10
y=int(x*8/100)
z=int(x*10/100)
i=0
while i==0:
  if int(x*8/100)==a and int(x*10/100)==b:
    print(x)
    break
  else:
    x=x+1

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
x=10
y=int(x*8/100)
z=int(x*10/100)
i=0
while x<10000:
  if int(x*8/100)==a and int(x*10/100)==b:
    print(x)
    break
  else:
    x=x+1
if x==10000:
  print("-1")
Buggy python submission (verdict: Runtime Error):
a,b=input().split()
a=int(a)
b=int(b)
if a>=10:
  print(b)
else:
  print(int(b+100*(10-a))

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
if a>=10:
  print(b)
if a<10:
  print(b+(100*(10-a)))

Buggy python submission (verdict: Runtime Error):
a,b=input().split()
a=int(a)
b=int(b)
if a>=10:
  print(b)
else:
  print(int(b-100*(10-a))

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
if a>=10:
  print(b)
if a<10:
  print(b+(100*(10-a)))
Buggy python submission (verdict: Runtime Error):
a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
c.sort()
d=sum(c)
e=0
for i in range(b):
  e=e+c[-b]
print(d-e)

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
c.sort()
d=sum(c)
e=0
if a<=b:
  print(0)
else:
  for i in range(1,b+1):
    e=e+c[-i]
  print(d-e)

Buggy python submission (verdict: Runtime Error):
a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
c.sort()
d=sum(c)
e=0
for i in range(b):
  e=e+c[-b]
print(d-2*e)

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
c.sort()
d=sum(c)
e=0
if a<=b:
  print(0)
else:
  for i in range(1,b+1):
    e=e+c[-i]
  print(d-e)

Buggy python submission (verdict: Runtime Error):
a,b=input().split()
c=list(map(int,input().split()))
c.sort()
d=sum(c)
e=0
for i in range(b):
  e=e+c[-b]
print(d-2*e)

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
c.sort()
d=sum(c)
e=0
if a<=b:
  print(0)
else:
  for i in range(1,b+1):
    e=e+c[-i]
  print(d-e)
Buggy python submission (verdict: Runtime Error):
a=input()
print(a+1)

Fixed submission:
a=input()
if a=="a":
  print("b")
if a=="b":
  print("c")
if a=="c":
  print("d")
if a=="d":
  print("e")
if a=="e":
  print("f")
if a=="f":
  print("g")
if a=="g":
  print("h")
if a=="h":
  print("i")
if a=="i":
  print("j")
if a=="j":
  print("k")
if a=="k":
  print("l")
if a=="l":
  print("m")
if a=="m":
  print("n")
if a=="n":
  print("o")
if a=="o":
  print("p")
if a=="p":
  print("q")
if a=="q":
  print("r")
if a=="r":
  print("s")
if a=="s":
  print("t")
if a=="t":
  print("u")
if a=="u":
  print("v")
if a=="v":
  print("w")
if a=="w":
  print("x")
if a=="x":
  print("y")
if a=="y":
  print("z")
Buggy python submission (verdict: Runtime Error):
a,b=int(input().split())
if a*500>=b:
  print("Yes")
else:
  print("No")

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
if a*500>=b:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N=input()
N=int(N)
S=input()
count=0
for i in range(N-2):
  if S[i]=="A" and S[i+1]=="B" and S[i+2]=="C":
    count=count+1
print(count)

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
if a*500>=b:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
N=input()
N=int(N)
S=input()
count=0
for i in range(N):
  if S[i]=="A" and S[i+1]=="B" and S[i+2]=="C":
    count=count+1
print(count)
    

Fixed submission:
N=input()
N=int(N)
S=input()
count=0
for i in range(N-2):
  if S[i]=="A" and S[i+1]=="B" and S[i+2]=="C":
    count=count+1
print(count)
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=input()
c=input()
d=""
for i in range(a):
  d=d+b[i]+c[i]
print(d)

Fixed submission:
a=int(input())
b,c=input().split()
d=""
for i in range(a):
  d=d+b[i]+c[i]
print(d)
Buggy python submission (verdict: Runtime Error):
a,b=input().split()
a=int(a)
b=int(b)
c=1
d=0
if a>b:
  for i in range(1,a):
    if a%(a-i)==0 and b%(b-i)==0:
      a=a/(a-i)
      b=b/(a-i)
      c=c*(a-i)
  print(int(a*b*c))
if a<b:
  for i in range(1,b):
    if a%(b-i)==0 and b%(b-i)==0:
      a=a/(b-i)
      b=b/(a-i)
      c=c*(b-i)
  print(int(a*b*c))

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
e=a
d=b
c=1
if a>b:
  for i in range(1,e):
    if a%(e-i)==0 and b%(e-i)==0:
      a=a/(e-i)
      b=b/(e-i)
      c=c*(e-i)
  print(int(a*b*c))
if a<b:
  for i in range(1,d):
    if a%(d-i)==0 and b%(d-i)==0:
      a=a/(d-i)
      b=b/(d-i)
      c=c*(d-i)
  print(int(a*b*c))

Buggy python submission (verdict: Runtime Error):
a,b=input().split()
a=int(a)
b=int(b)
c=1
d=0
if a>b:
  for i in range(a):
    if a%i==0 and b%i==0:
      a=a/i
      b=b/i
      c=c*i
  print(a*b*c)
if a<b:
  for i in range(b):
    if a%i==0 and b%i==0:
      a=a/i
      b=b/i
      c=c*i
  print(a*b*c)

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
e=a
d=b
c=1
if a>b:
  for i in range(1,e):
    if a%(e-i)==0 and b%(e-i)==0:
      a=a/(e-i)
      b=b/(e-i)
      c=c*(e-i)
  print(int(a*b*c))
if a<b:
  for i in range(1,d):
    if a%(d-i)==0 and b%(d-i)==0:
      a=a/(d-i)
      b=b/(d-i)
      c=c*(d-i)
  print(int(a*b*c))
Buggy python submission (verdict: Runtime Error):
a=input()
b=0
for i in range(len(a)):
  if a[i]!=a[len(a)-i]:
    b=b+1
print(int(b/2))

Fixed submission:
a=input()
b=0
for i in range(len(a)):
  if a[i]!=a[len(a)-i-1]:
    b=b+1
print(int(b/2))
Buggy python submission (verdict: Runtime Error):
c=input()
a=input()
b=0
if c%2==1:
  print("No")
else:
  for i in range(c/2):
    if a[i]!=a[i+int(c/2)]:
      b=b+1
  if b==0:
    print("Yes")
  else:
    print("No")

Fixed submission:
c=input()
c=int(c)
a=input()
b=0
if c%2==1:
  print("No")
else:
  for i in range(int(c/2)):
    if a[i]!=a[i+int(c/2)]:
      b=b+1
  if b==0:
    print("Yes")
  else:
    print("No")

Buggy python submission (verdict: Runtime Error):
a=input()
b=0
if (len(a))%2==1:
  print("No")
else:
  for i in range(len(a/2)):
    a[i]!=a[i+a/2]:
      b=b+1
  if b==0:
    print("Yes")
  else:
    print("No")

Fixed submission:
c=input()
c=int(c)
a=input()
b=0
if c%2==1:
  print("No")
else:
  for i in range(int(c/2)):
    if a[i]!=a[i+int(c/2)]:
      b=b+1
  if b==0:
    print("Yes")
  else:
    print("No")

Buggy python submission (verdict: Runtime Error):
a=input()
b=0
if (len(a))%2==1:
  print("No")
else:
  for i in range(a/2):
    a[i]!=a[i+a/2]:
      b=b+1
  if b==0:
    print("Yes")
  else:
    print("No")

Fixed submission:
c=input()
c=int(c)
a=input()
b=0
if c%2==1:
  print("No")
else:
  for i in range(int(c/2)):
    if a[i]!=a[i+int(c/2)]:
      b=b+1
  if b==0:
    print("Yes")
  else:
    print("No")
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=0
for i in range(9):
  for k in range(9):
    if (i+1)*(k+1)==a:
      print("Yes")
      break
      b=b+1
if b=81:
  print("No")

Fixed submission:
a=int(input())
if a==11 or a==13 or a==17 or a==19 or a==22 or a==23 or a==26 or a==29 or a==31 or a==33 or a==34 or a==37 or a==38 or a==39 or a==41 or a==43 or a==44 or a==46 or a==47 or a==50 or a==51 or a==52 or a==53 or a==55 or a==57 or a==58 or a==59 or a==60 or a==61 or a==62 or a==65 or a==66 or a==67 or a==68 or a==69 or a==70 or a==71 or a==73 or a==74 or a==75 or a==76 or a==77 or a==78 or a==79 or a==80 or a>=82:
  print("No")
else:
  print("Yes")
Buggy python submission (verdict: Runtime Error):
a=int(input())a\
b=input()
c=0
for i in range(a-1):
  if b[i]==b[i+1]:
    c=c+1
print(a-c)

Fixed submission:
a=int(input())
b=input()
c=0
for i in range(a-1):
  if b[i]==b[i+1]:
    c=c+1
print(a-c)
Buggy python submission (verdict: Runtime Error):
a=input()
if a%2==0:
  for i in range(int(len(a)/2)):
    if a[2*i]=="R" or a[2*i]=="U" or a[2*i]=="D":
      b=b+1
    if a[2*i+1]=="L" or a[2*i+1]=="U" or a[2*i+1]=="D":
      b=b+1
  if b=len(a):
    print("Yes")
  else:
    print("No")
if a%2==1:
  for i in range(int(len(a)/2)+1):
    if a[2*i]=="R" or a[2*i]=="U" or a[2*i]=="D":
      b=b+1
  for i in range(int(len(a)/2)):
    if a[2*i+1]=="L" or a[2*i+1]=="U" or a[2*i+1]=="D":
      b=b+1
  if b=len(a):
    print("Yes")
  else:
    print("No")

Fixed submission:
a=input()
b=0
if (len(a))%2==0:
  for i in range(int(len(a)/2)):
    if a[2*i]=="R" or a[2*i]=="U" or a[2*i]=="D":
      b=b+1
    if a[2*i+1]=="L" or a[2*i+1]=="U" or a[2*i+1]=="D":
      b=b+1
  if b==len(a):
    print("Yes")
  else:
    print("No")
if (len(a))%2==1:
  for i in range(int(len(a)/2)+1):
    if a[2*i]=="R" or a[2*i]=="U" or a[2*i]=="D":
      b=b+1
  for i in range(int(len(a)/2)):
    if a[2*i+1]=="L" or a[2*i+1]=="U" or a[2*i+1]=="D":
      b=b+1
  if b==len(a):
    print("Yes")
  else:
    print("No")
Buggy python submission (verdict: Runtime Error):
a=input()
a.sort()
if a[0]==a[1] and a[2]==a[3]:
  print("Yes")
else:
  print("No")

Fixed submission:
a=input()
if a[0]==a[1] and a[2]==a[3] and a[0]!=a[2]:
  print("Yes")
elif a[0]==a[2] and a[1]==a[3] and a[0]!=a[1]:
  print("Yes")
elif a[0]==a[3] and a[1]==a[2] and a[0]!=a[1]:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
b.sort()
if b[(a/2)-1]==b[(a/2)]:
  print(0)
else:
  print(b[(a/2)]-b[(a/2)-1]-1)

Fixed submission:
a=int(input())
b=list(map(int,input().split()))
b.sort()
if b[int(a/2)-1]==b[int(a/2)]:
  print(0)
else:
  print(b[int(a/2)]-b[int(a/2)-1])
Buggy python submission (verdict: Runtime Error):
a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
d=0
for i in range(a):
  while d<b:
    d=d+b[i]
  print(d)
  break

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
d=0
e=0
for i in range(a):
  if d+c[i]<=b:
    d=d+c[i]
    e=e+1
  else:
    break
print(e+1)
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=sum(b)
d=0
e=0
for i in range(a):
  d=d+b[i]
  if d>=c/2:
    e=i
    break
for i in range(e):
  e=e+b[e]
if d-(c-d)<e-(c-e):
  print(d-(c-d))
else:
  print(e-(c-e))

Fixed submission:
a=int(input())
b=list(map(int,input().split()))
c=sum(b)
d=0
e=0
f=0
for i in range(a):
  d=d+b[i]
  if d>=c/2:
    e=i
    break
for i in range(e):
  f=f+b[i]
if abs(d-(c-d))<abs(f-(c-f)):
  print(abs(d-(c-d)))
else:
  print(abs(f-(c-f)))
Buggy python submission (verdict: Runtime Error):
a,b=input().split()
a=int(a)
b=int(b)
print(int((a*3+b)/2)

Fixed submission:
a,b=input().split()
a=int(a)
b=int(b)
print(int((a*3+b)/2))
Buggy python submission (verdict: Runtime Error):
a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
d=c
while i<10:
d=a*d-b
print(d)
i=i+1

Fixed submission:
a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
i=0
while i<10:
  i=i+1
  c=a*c-b
  print(c)
Buggy python submission (verdict: Runtime Error):
a=input(a)
b=int(a[0]+a[1])
c=int(a[2]+a[3])
if 1<=b<=12 and 1<=c<=12:
  print("AMBIGUOUS")
elif b>12:
  if c>12:
    print("Na")
  elif 1<=c<=12:
    print("YYMM")
elif c>12:
  if b>12:
    print("Na")
  elif 1<=b<=12:
    print("MMYY")
else:
  print("NA")

Fixed submission:
a=input()
b=int(a[0]+a[1])
c=int(a[2]+a[3])
if 1<=b<=12:
  if 1<=c<=12:
    print("AMBIGUOUS")
  else:
    print("MMYY")
else:
  if 1<=c<=12:
    print("YYMM")
  else:
    print("NA")