Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int,input().split())
if a==b and b=c and c=a:
  print("No")
elif a!=b and b!=c and c!=a:
  print("No")
else:
  print("Yes")

Fixed submission:
a,b,c=map(int,input().split())
if a==b and b==c and c==a:
  print("No")
elif a!=b and b!=c and c!=a:
  print("No")
else:
  print("Yes")

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

Fixed submission:
a,b,c=map(int,input().split())
if a==b and b==c and c==a:
  print("No")
elif a!=b and b!=c and c!=a:
  print("No")
else:
  print("Yes")

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

Fixed submission:
a,b,c=map(int,input().split())
if a==b and b==c and c==a:
  print("No")
elif a!=b and b!=c and c!=a:
  print("No")
else:
  print("Yes")

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

Fixed submission:
a,b,c=map(int,input().split())
if a==b and b==c and c==a:
  print("No")
elif a!=b and b!=c and c!=a:
  print("No")
else:
  print("Yes")

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

Fixed submission:
a,b,c=map(int,input().split())
if a==b and b==c and c==a:
  print("No")
elif a!=b and b!=c and c!=a:
  print("No")
else:
  print("Yes")

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


Fixed submission:
a,b,c=map(int,input().split())
if a==b and b==c and c==a:
  print("No")
elif a!=b and b!=c and c!=a:
  print("No")
else:
  print("Yes")

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

Fixed submission:
a,b,c=map(int,input().split())
if a==b and b==c and c==a:
  print("No")
elif a!=b and b!=c and c!=a:
  print("No")
else:
  print("Yes")
Buggy python submission (verdict: Runtime Error):
N,M=map(int,input().split())
if N=M:
    print('Yes')
else :
    print('No')
    

Fixed submission:
x, y = input().split(' ')
if x == y:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
S,T=map(input().split())
print('{}{}'.format(T,S))
      

Fixed submission:
S,T=map(str,input().split())
print('{}{}'.format(T,S))

Buggy python submission (verdict: Runtime Error):
S,T=map(input().split())
print('{T}{S}'.format(S,T))
      

Fixed submission:
S,T=map(str,input().split())
print('{}{}'.format(T,S))

Buggy python submission (verdict: Runtime Error):
S,T=map(input().split())
print('S'end'')
print('T')


Fixed submission:
S,T=map(str,input().split())
print('{}{}'.format(T,S))

Buggy python submission (verdict: Runtime Error):
S,T=input().split()
print('S'end'')
print('T')


Fixed submission:
S,T=map(str,input().split())
print('{}{}'.format(T,S))
Buggy python submission (verdict: Runtime Error):
a,b=int(input().split())
if a-2*b>0:
  　　print(a-2*b)
else:
　　　　print(0)


Fixed submission:
a,b=map(int,input().split())
if a-2*b>0:
    print(a-2*b)
else:
    print(0)

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


Fixed submission:
a,b=map(int,input().split())
if a-2*b>0:
    print(a-2*b)
else:
    print(0)

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


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

Fixed submission:
n=int(input())
li = list(map(int,input().split()))
a=0
for i in range(n):
  for j in range(n):
    a += li[i]*li[j]
b=0
for i in range(n):
    b+= li[i]*li[i]
print((a-b)//2)
Buggy python submission (verdict: Runtime Error):
S=int(input())
if S/2=0.5:
    print(0.5)
else:
    prrint(3/S)

Fixed submission:
S=int(input())
if S%2==0:
    print(0.5)
else:
    print((S//2+1)/S)
Buggy python submission (verdict: Runtime Error):
s=input()
if s=='Sunny':
    print('Cloudy')
elif s=='Cloudy':
    print('Rainy')
else:
    pront('Sunny')

Fixed submission:
s=input()
if s=='Sunny':
    print('Cloudy')
elif s=='Cloudy':
    print('Rainy')
else:
    print('Sunny')
Buggy python submission (verdict: Runtime Error):
S=input()
T=input()
ans=0
for i in range(3):
    if S[i]==T[i]:
    ans+=1
print(ans)

Fixed submission:
S=input()
T=input()
ans=0
for i in range(3):
 if S[i]==T[i]:
     ans+=1
print(ans)

Buggy python submission (verdict: Runtime Error):
S=input()
T=input()
ans=0
for i in range(3):
if S[i]==T[i]:
    ans+=1
print(ans)


Fixed submission:
S=input()
T=input()
ans=0
for i in range(3):
 if S[i]==T[i]:
     ans+=1
print(ans)

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

Fixed submission:
S=input()
T=input()
ans=0
for i in range(3):
 if S[i]==T[i]:
     ans+=1
print(ans)

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

Fixed submission:
S=input()
T=input()
ans=0
for i in range(3):
 if S[i]==T[i]:
     ans+=1
print(ans)

Buggy python submission (verdict: Runtime Error):
a,b=input().split()
if a==b:
    print(3)
elif a[0]=b[0] and a[1]=b[1] and a[2]!=b[2]:
    print(2)
elif a[0]=b[0] and a[1]!=b[1] and a[2]=b[2]:
    print(2)
elif a[0]!=b[0] and a[1]=b[1] and a[2]=b[2]:
    print(2)
elif a[0]!=b[0] and a[1]!=b[1] and a[2]!=b[2]:
    print(0)
else :
    print(1)  

Fixed submission:
S=input()
T=input()
ans=0
for i in range(3):
 if S[i]==T[i]:
     ans+=1
print(ans)

Buggy python submission (verdict: Runtime Error):
a,b=minput().split()
if a==b:
    print(3)
elif a!=b:
    print(0)
elif a[0]=b[0] and a[1]=b[1] and a[2]!=b[2]:
    print(2)
elif a[0]=b[0] and a[1]!=b[1] and a[2]=b[2]:
    print(2)
elif a[0]!=b[0] and a[1]=b[1] and a[2]=b[2]:
    print(2)
else:
    print(1)  
     


Fixed submission:
S=input()
T=input()
ans=0
for i in range(3):
 if S[i]==T[i]:
     ans+=1
print(ans)

Buggy python submission (verdict: Runtime Error):
a,b=map(input().split())
if a==b:
    print(3)
elif a!=b:
    print(0)
elif a[0]=b[0] and a[1]=b[1] and a[2]!=b[2]:
    print(2)
elif a[0]=b[0] and a[1]!=b[1] and a[2]=b[2]:
    print(2)
elif a[0]!=b[0] and a[1]=b[1] and a[2]=b[2]:
    print(2)
else:
    print(1)  
     

Fixed submission:
S=input()
T=input()
ans=0
for i in range(3):
 if S[i]==T[i]:
     ans+=1
print(ans)
Buggy python submission (verdict: Runtime Error):
s=input()
if len(set(s))=2 and count(s[0])=2:
    print('Yes')
else:
    print('No')
    


Fixed submission:
s=input()
if len(set(s))==2 and s.count(s[0])==2:
    print('Yes')
else:
    print('No')

Buggy python submission (verdict: Runtime Error):
s=input()
if len(set(s))=2 and count(s[0])=2:
       print('Yes')
else:
       print('No')
    

Fixed submission:
s=input()
if len(set(s))==2 and s.count(s[0])==2:
    print('Yes')
else:
    print('No')

Buggy python submission (verdict: Runtime Error):
s=input()
if len(set((s))=2 and count(s[0])=2:
       print('Yes')
else:
       print('No')

Fixed submission:
s=input()
if len(set(s))==2 and s.count(s[0])==2:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
s=int(input())
if s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:
    print('Good')
else:
    print('Bad')

Fixed submission:
s=input()
if s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:
    print('Good')
else:
    print('Bad')

Buggy python submission (verdict: Runtime Error):
s=input()
n=0
while s[n]!=s[n+1]:
    n+=1
    print('Good')
else:
    print('Bad')


Fixed submission:
s=input()
if s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:
    print('Good')
else:
    print('Bad')

Buggy python submission (verdict: Runtime Error):
s=int(input())
n=0
while s[n]!=s[n+1]:
    n+=1
    n=5:
        print('Good') 
else:
    print('Bad')

Fixed submission:
s=input()
if s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:
    print('Good')
else:
    print('Bad')
Buggy python submission (verdict: Runtime Error):
 a,b=map(int,input().split())
print((3*a+b)//2)


Fixed submission:
a,b=map(int,input().split())
print((3*a+b)//2)

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


Fixed submission:
a,b=map(int,input().split())
print((3*a+b)//2)

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


Fixed submission:
a,b=map(int,input().split())
print((3*a+b)//2)

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


Fixed submission:
a,b=map(int,input().split())
print((3*a+b)//2)

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

Fixed submission:
a,b=map(int,input().split())
print((3*a+b)//2)
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
if a>12:
    print(int(b))	
elif 12>=a>=6:
    print(int(b/2)
else:
    print(0)


Fixed submission:
a,b=map(int,input().split())
if a>12:
    print(int(b))	
elif 12>=a>=6:
    print(int(b/2))
else:
    print(0)

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().spplit())
if a>12:
    print(int(b))	
elif 12>=a>=6:
    print(int(b/2)
else:
    print(0)

Fixed submission:
a,b=map(int,input().split())
if a>12:
    print(int(b))	
elif 12>=a>=6:
    print(int(b/2))
else:
    print(0)
Buggy python submission (verdict: Runtime Error):
n=int,input()
k=int,input()
s=input()
S=s[0:k-1]+s[k-1].lower()+s[k:]
print(S)


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

Buggy python submission (verdict: Runtime Error):
n=int,input()
k=int,input()
s=input()
S='s[0:k-1]' + 's[k-1].lower()' + 's[k:]'
print(S)


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

Buggy python submission (verdict: Runtime Error):
n=int,input()
k=int,input()
s=input()
S='s[0:k-1]'+'s[k-1].lower()'+'s[k:]'
print(S)


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

Buggy python submission (verdict: Runtime Error):
n=int,input(4)
k=int,input(3)
s=input(CABA)
S=s[0:k-1]+s[k-1].lower()+s[k:]
print(S)


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

Buggy python submission (verdict: Runtime Error):
n=int,input(4)
k=int,input(3)
s=input(CABA)
S='s[0:k-2]'+'s[k-1].swapcase()'+'s[k:]'
print(S)


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

Buggy python submission (verdict: Runtime Error):
n=int,input()
k=int,input()
s=input()
S='s[0:k-2]'+'s[k-1].swapcase()'+'s[k:n]'
print(S)

Fixed submission:
n,k=map(int,input().split())
s=input()
S=s[0:k-1]+s[k-1].lower()+s[k:]
print(S)
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
print(max(a+b,mac(a,b)+max(a-1,b-1)))


Fixed submission:
a,b=map(int,input().split())
print(max(a+b,max(a,b)+max(a-1,b-1)))

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


Fixed submission:
a,b=map(int,input().split())
print(max(a+b,max(a,b)+max(a-1,b-1)))

Buggy python submission (verdict: Runtime Error):
a,b=map(int,inpput().split())
print(max(a+b,max(a,b)+max(a-1,b-1)))


Fixed submission:
a,b=map(int,input().split())
print(max(a+b,max(a,b)+max(a-1,b-1)))

Buggy python submission (verdict: Runtime Error):
a,b=map(int,inpput().split())
print(max(a+b,max(a,b)+max(a-1,b-1))

Fixed submission:
a,b=map(int,input().split())
print(max(a+b,max(a,b)+max(a-1,b-1)))
Buggy python submission (verdict: Runtime Error):
n=input()
if n==A:
  print('T')
elif n==T:
  print('A')
elif n==C:
  print('G')
else:
  print('C')


Fixed submission:
n=input()
if n=='A':
    print('T')
elif n=='T':
    print('A')
elif n=='C':
    print('G')
else:
    print('C')

Buggy python submission (verdict: Runtime Error):
n=input()
if n==A:
  print('T')
elif n==T:
  print('A')
elif n=C:
  print('G')
else:
  print('C')

Fixed submission:
n=input()
if n=='A':
    print('T')
elif n=='T':
    print('A')
elif n=='C':
    print('G')
else:
    print('C')
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
c,d=map(int,input().split())
print(int(((a-c)*(b-d)))

Fixed submission:
a,b=map(int,input().split())
c,d=map(int,input().split())
print(int((a-c)*(b-d)))
Buggy python submission (verdict: Runtime Error):
S=input()
if S[5:7]<5:
    print('Heisei')
else:
    print('TBD')
    

Fixed submission:
S=input()
if int(S[5:7])<5:
    print('Heisei')
else:
    print('TBD')
Buggy python submission (verdict: Runtime Error):
a,s=map(int,input().split())
if a!=2 and s!=2!:
    print('YES')
    
else:
    print('NO')


Fixed submission:
a,s=map(int,input().split())
if a!=2 and s!=2:
    print('Yes')
    
else:
    print('No')

Buggy python submission (verdict: Runtime Error):
a,s=map(int,input().split())
if a!=2 and s!=2!
    print('YES')
    
else:
    print('NO')


Fixed submission:
a,s=map(int,input().split())
if a!=2 and s!=2:
    print('Yes')
    
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
a=int(input())
print(24+(24-a)

Fixed submission:
a=int(input())
print(24+(24-a))
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input()split())
print((a+b)//2)

Fixed submission:
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))
Buggy python submission (verdict: Runtime Error):
# import sys
# sys.stdin = open('input.txt', 'r')
# sys.stdout = open('output.txt', 'w')


def isDivBy9(n):

    if (n == 0 or n == 9):
        return True
    if (n < 9):
        return False

    return isDivBy9((int)(n >> 3) - (int)(n & 7))


n = int(input())
if (isDivBy9(n)):
    print("Yes")
else:
    print("No")


Fixed submission:
n = int(input())
if (n % 9 == 0):
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
import sys
sys.stdin = open('input.txt', 'r')
sys.stdout = open('output.txt', 'w')


def isDivBy9(n):

    if (n == 0 or n == 9):
        return True
    if (n < 9):
        return False

    return isDivBy9((int)(n >> 3) - (int)(n & 7))


n = int(input())
if (isDivBy9(n)):
    print("Yes")
else:
    print("No")


Fixed submission:
n = int(input())
if (n % 9 == 0):
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
N=int(input())
A=list(map(int,input().split()))
ans = 0
for i in range (1,N):
    if  A[i-1] > high:
        high = A[i-1]
    if high > A[i-1]:
        ans += high - A[i]
print (ans)

Fixed submission:
N=int(input())
A=list(map(int,input().split()))
ans = 0
high = 0
for i in range (1,N):
    if  A[i-1] > high:
        high = A[i-1]
    if high > A[i]:
        ans += high - A[i]
print (ans)
Buggy python submission (verdict: Runtime Error):
,D=map(int,input().split())
X=[]
Y=[]
for i in range(N):
    x,y=map(int,input().split())
    X.append(x)
    Y.append(y)
ans=0    
for i in range(N):
    if X[i]**2+Y[i]**2 <= D**2:
        ans += 1

print(ans)


Fixed submission:
N,D=map(int,input().split())
X=[]
Y=[]
for i in range(N):
    x,y=map(int,input().split())
    X.append(x)
    Y.append(y)
ans=0    
for i in range(N):
    if X[i]**2+Y[i]**2 <= D**2:
        ans += 1

print(ans)

Buggy python submission (verdict: Runtime Error):
N,D=map(int,input().split())
X=[]
Y=[]
for i in range(N):
    x,y=map(int,input().split())
    X.append(x)
    Y.append(y)
ans=0    
for i in range(N):
    if X[i]**2+Y[i]**2 <= D**2:
    ans += 1

print(ans)


Fixed submission:
N,D=map(int,input().split())
X=[]
Y=[]
for i in range(N):
    x,y=map(int,input().split())
    X.append(x)
    Y.append(y)
ans=0    
for i in range(N):
    if X[i]**2+Y[i]**2 <= D**2:
        ans += 1

print(ans)

Buggy python submission (verdict: Runtime Error):
N,D=map(int,input().split())
X=[]
Y=[]
for i in range(N):
    x,y=map(int,input().split())
    X.append(x)
    Y.append(y)
ans=0    
for i in range(N):
    if X[i]**2+Y[i]**2 <= D**2
    ans += 1

print(ans)

Fixed submission:
N,D=map(int,input().split())
X=[]
Y=[]
for i in range(N):
    x,y=map(int,input().split())
    X.append(x)
    Y.append(y)
ans=0    
for i in range(N):
    if X[i]**2+Y[i]**2 <= D**2:
        ans += 1

print(ans)

Buggy python submission (verdict: Runtime Error):
N,D=map(int,input().split())
X=[]
Y=[]
for i in range(N)
    x,y=map(int,input().split())
    X.append(x)
    Y.append(y)
ans=0    
for i in range(N)
    if X[i]**2+Y[i]**2 <= D**2
    ans += 1

print(ans)


Fixed submission:
N,D=map(int,input().split())
X=[]
Y=[]
for i in range(N):
    x,y=map(int,input().split())
    X.append(x)
    Y.append(y)
ans=0    
for i in range(N):
    if X[i]**2+Y[i]**2 <= D**2:
        ans += 1

print(ans)
Buggy python submission (verdict: Runtime Error):
N=int(input())
A=list(map(int,input().split()))

if 0 in A:
    print(0)
    exit(0)
ans = 1 
for i in range A:
    ans *= i
    if ans >= 10**18:
        print(-1)
        exit(0)
        
print(ans)

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

if 0 in A:
    print(0)
    exit(0)
    
ans = 1 
for i in A:
    ans *= i
    if ans > 10**18:
        print(-1)
        exit(0)
        
print(ans)
Buggy python submission (verdict: Runtime Error):
N = list(input())

for i in N:
    if i == "7"
        print("Yes")
        break
    
else:
    print("No")

Fixed submission:
N = list(input())

for i in N:
    if i == "7":
        print("Yes")
        break
    
else:
    print("No")

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

for i in N：
    if i == "7"
        print("Yes")
        break
    
else：
    print("No")

Fixed submission:
N = list(input())

for i in N:
    if i == "7":
        print("Yes")
        break
    
else:
    print("No")

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

for i in N：
    if i == "7"
      print("Yes")
      break
    
else：
    print("No")

Fixed submission:
N = list(input())

for i in N:
    if i == "7":
        print("Yes")
        break
    
else:
    print("No")

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

for i in N：
    if i == "7"
     print("Yes")
     break
    
else：
    print("No")

Fixed submission:
N = list(input())

for i in N:
    if i == "7":
        print("Yes")
        break
    
else:
    print("No")

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

for i in N：
    if i == "7"
    print("Yes")
    break
    
else：
    print("No")

Fixed submission:
N = list(input())

for i in N:
    if i == "7":
        print("Yes")
        break
    
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
A = list(map(int,input().split())
a = sum(A)
if a >= 22:
    print("bust")
else:
    print("win")

Fixed submission:
A = list(map(int,input().split()))
a = sum(A)
if a >= 22:
    print("bust")
else:
    print("win")
Buggy python submission (verdict: Runtime Error):
s = input()
ans = 0
if s=1:
    ans += "1"
print(ans)

Fixed submission:
s = input()
print(s.count("1"))
Buggy python submission (verdict: Runtime Error):
N = int(input())
K = int(input())

count = 0
i = 1
while i <= N:
  s = str(i)
  if K == (len(s) - s.count("0")):
    count = count + 1
  i = i + 1

print(count)

Fixed submission:
tmp = input().split()
S = tmp[0]
T = tmp[1]
i = list(map(int, input().split()))
A = i[0]
B = i[1]
U = input()

if S == U:
  print(str(A-1) + " " + str(B))
else:
  print(str(A) + " " + str(B-1))

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

count = 0
i = 1
while i <= N:
  s = str(i)
  if K == len(s) - s.count("0"):
    count = count + 1
  i = i + 1

print(count)

Fixed submission:
tmp = input().split()
S = tmp[0]
T = tmp[1]
i = list(map(int, input().split()))
A = i[0]
B = i[1]
U = input()

if S == U:
  print(str(A-1) + " " + str(B))
else:
  print(str(A) + " " + str(B-1))
Buggy python submission (verdict: Runtime Error):
N = int(input())
if N >= 500:
    t = N//500
    a = N%500
    if a >= 5:
        f = a//5
        print(1000*t+f*5)
    else:
        print(1000*t)
elif N >= 5:
    f = a//5
    print(1000*t+f*5)
else:
    print("0")

Fixed submission:
N = int(input())
if N >= 500:
    t = N//500
    a = N%500
    if a >= 5:
        f = a//5
        print(1000*t+f*5)
    else:
        print(1000*t)
elif N >= 5:
    f = N//5
    print(f*5)
else:
    print("0")

Buggy python submission (verdict: Runtime Error):
N = int(input())
if N >= 500:
    t = N//500
    a = N%500
    if a >= 5:
        f = a//5
        print(1000*t+f*5)
    else:
        print(1000*t)
elif N >= 5:
    f = a//5
    print(1000*t+f*5)
else:
    print("0")

Fixed submission:
N = int(input())
if N >= 500:
    t = N//500
    a = N%500
    if a >= 5:
        f = a//5
        print(1000*t+f*5)
    else:
        print(1000*t)
elif N >= 5:
    f = N//5
    print(f*5)
else:
    print("0")
Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
entry = list(map(int, input().split()))

result = []
for i in range(1, len(entry)+1):
    print(entry.index(i)+1, " ", end="")

Fixed submission:
from operator import itemgetter

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

result =[]
for i in range(len(entry)):
    result.append([i+1, entry[i]])
result2 = sorted(result, key=itemgetter(1))
    
for i in range(len(result)):
    print(result2[i][0], " ", end="")

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
entry = list(map(int, input().split()))

result = []
for i in range(1, len(entry)+1):
    result.append(entry.index(i)+1)
for j in range(len(result)):
    print(result[j], " ", end="")

Fixed submission:
from operator import itemgetter

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

result =[]
for i in range(len(entry)):
    result.append([i+1, entry[i]])
result2 = sorted(result, key=itemgetter(1))
    
for i in range(len(result)):
    print(result2[i][0], " ", end="")
Buggy python submission (verdict: Runtime Error):
N=int(input())
dst = []
dst.append(input().split())

max_ = 0
for i in range(N-1):
    if dst[0][i] >= dst[0][i+1]:
        count += 1
        if count > max_:
            max_ = count
    else:
        count = 0
print(max_)

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

cmax = 0
count = 0
for i in range(N-1):
    if dst[i] >= dst[i+1]:
        count += 1
        if count > cmax:
            cmax = count
    else:
        count = 0
        
print(cmax)

Buggy python submission (verdict: Runtime Error):
N=int(input())
dst = []
dst.append(input().split())

max_ = 0
for i in range(N-2):
    if dst[0][i] >= dst[0][i+1]:
        count += 1
        if count > max_:
            max_ = count
    else:
        count = 0
print(max_)

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

cmax = 0
count = 0
for i in range(N-1):
    if dst[i] >= dst[i+1]:
        count += 1
        if count > cmax:
            cmax = count
    else:
        count = 0
        
print(cmax)
Buggy python submission (verdict: Runtime Error):
a,b=input().split()
if a*b%2==0:
  print("Even")
else:
  print("Odd")

Fixed submission:
a,b=map(int, input().split())
if a*b%2==0:
  print("Even")
else:
  print("Odd")

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

if a*b%2==0:
  print("Even")
else:
  print("Odd")

Fixed submission:
a,b=map(int, input().split())
if a*b%2==0:
  print("Even")
else:
  print("Odd")