Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)

    if op == '?':
        break

    if op == '+':
        

Fixed submission:
while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    if op == '?':
        break
    if op == '+':
        print(a+b)
    if op == '-':
        print(a-b)
    if op == '*':
        print(a*b)
    if op == '/':
        print(a//b)

Buggy python submission (verdict: Runtime Error):
 while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
  
    if op == '?':
        break
 
    if op == '+':
        print(a + b)
 
    if op == '-':
        print(a - b)
     
    if op == '*':
        print(a * b)
 
    if op == '/':
        print(a // b)

Fixed submission:
while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    if op == '?':
        break
    if op == '+':
        print(a+b)
    if op == '-':
        print(a-b)
    if op == '*':
        print(a*b)
    if op == '/':
        print(a//b)
Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    for h in range(h):
    if H == W == 0:
        break


        for w in range(w):
            print('#', end=' ')

        print()
    
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            print('#', end='')

        print()

    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    for h in range(h):
    if H == W == 0:
        break


        for w in range(w):
            print('#', end=' ')

        print()
 
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            print('#', end='')

        print()

    print()
Buggy python submission (verdict: Runtime Error):
while True:
    H, W =[int(i) for i in input().split()]
    if H == W == 0:
        break

    for i in range(H):
        for i in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')


    print()

print()

Fixed submission:
while True:
    H, W =[int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')

        print()

    print()
Buggy python submission (verdict: Runtime Error):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

s = input().lower()

for c in s:
    if 'a' <= c <= 'z':
            count[c] += 1

for key, num in count:
    print("{0} : {1}".format(key, count[key]))

Fixed submission:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
            count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Buggy python submission (verdict: Runtime Error):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in s:
    if 'a' <= c <= 'z':
            count[c] += 1

for key, num in count:
    print("{0} : {1}".format(key, count[key]))

Fixed submission:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
            count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Buggy python submission (verdict: Runtime Error):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in s:
    if 'a' <= c <= 'z':
            count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Fixed submission:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
            count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))
Buggy python submission (verdict: Runtime Error):
W =input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s = W:
            count += 1

print(count)
        

Fixed submission:
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

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

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s = W:
            count += 1

print(count)
        

Fixed submission:
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

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

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s = W:
            count += 1

print(count)
        

Fixed submission:
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)
Buggy python submission (verdict: Runtime Error):
S == int(input())
print(S // 3600 ":", (S % 3600) // 60 ":", S // 60)

Fixed submission:
S = int(input())
s = S % 60
m = S // 60 % 60
h = S // 3600
print("{0}"":""{1}"":""{2}".format(h,m,s))

Buggy python submission (verdict: Runtime Error):
S == int(input())
print(S // 3600 ":" (S % 3600) // 60 ":" S % 60)

Fixed submission:
S = int(input())
s = S % 60
m = S // 60 % 60
h = S // 3600
print("{0}"":""{1}"":""{2}".format(h,m,s))
Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split()]

if a = b:
    print("a = b")

elif a > b:
    print("a > b")

else:
    print("a < b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
    print("a < b")

elif a > b:
    print("a > b")

else:
    print("a == b")
Buggy python submission (verdict: Runtime Error):
data = [int(i) for i in input().split()]

data.sort()
print("{0} {1} {2}".format(data[0],data[2]))

Fixed submission:
data = [int(i) for i in input().split()]
 
data.sort()
print("{0} {1} {2}".format(data[0], data[1], data[2]))

Buggy python submission (verdict: Runtime Error):
data = [int(i) for i in input().split()]

data.sort()
print("{0} {1} {2}".format(data[0],data[2]))

Fixed submission:
data = [int(i) for i in input().split()]
 
data.sort()
print("{0} {1} {2}".format(data[0], data[1], data[2]))
Buggy python submission (verdict: Runtime Error):
W. H, x, y, = [int(i) for i in input().aplit()]

if x + r <= W and y - r >= 0 and x -r >= 0 and y + <= H:
    print("Yes")
else:
    print("No")

Fixed submission:
W, H, x, y, r = [int(i) for i in input().split()]
 
if x - r >= 0 and x + r <= W and y + r <= H and y - r >=0:
   print("Yes")
 
else:
   print("No")
Buggy python submission (verdict: Runtime Error):
a, b, c = [input(i) for i in input().split())

total = 0 
for d in range(a, b + 1): 
    if c % d == 0:
        total += 1

print(total)

Fixed submission:
a, b, c = [int(i) for i in input().split()]
 
total = 0
for d in range(a, b + 1):
    if c % d == 0:
        total += 1
 
print(total)

Buggy python submission (verdict: Runtime Error):
a, b, c = [int(i) for i in input().split())

total = 0 
for d in range(a, b + 1): 
    if c % d == 0:
        total += 1

print(total)

Fixed submission:
a, b, c = [int(i) for i in input().split()]
 
total = 0
for d in range(a, b + 1):
    if c % d == 0:
        total += 1
 
print(total)

Buggy python submission (verdict: Runtime Error):
a, b, c = [int(i) for i in input().split())

total = 0 
for d in range(a, b + 1): 

    if c % d == 0:
        total += 1

print(total)

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

d = a // b
r = a % b
r = a / b

print("{0} {1} {2:.5f}".format(d, r, f))

Fixed submission:
a, b = [int(i) for i in input().split()]
 
d = a // b
r = a % b
f = a / b
 
print("{0} {1} {2:.5f}".format(d, r, f))
Buggy python submission (verdict: Runtime Error):
while True:
    a, op, b = input().split()
    a = int(a)
    a = int(b)

    if op == '?':
        break

    if op == '+':
        print(a + b)
        
    if op == '-':
        print(a - b)
        
    if op == '*':
        print(a * b)
        
    if op == '/':
        print(a // b)

Fixed submission:
while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
  
    if op == '?':
        break
  
    if op == '+':
        print(a + b)
  
    if op == '-':
        print(a - b)
  
    if op == '*':
        print(a *b)
  
    if op == '/':
        print(a // b)
Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    for h in range(h):
        for w in range(w):
            print('#', end='')

        print()

print()    

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
 
    for h in range(H):
        for w in range(W):
            print('#', end='')
         
        print()
 
    print()
Buggy python submission (verdict: Runtime Error):
data = [
    "{0} {1}".format(s, r)
    for s in ('S', 'H', 'C', 'D')]
    for r in range(1, 13 + 1)
    ]

count = int(input())
for c in range(count):
    card = input()
    data.remove(card)

for c in data:
    print(c)

Fixed submission:
data = [
     "{0} {1}".format(s, r) 
      for s in ('S', 'H', 'C', 'D')
      for r in range(1, 13 +1)
        ]
count = int(input())
for c in range(count):
      card = input()
      data.remove(card)
 
for c in data:
   print(c)
Buggy python submission (verdict: Runtime Error):
while True:
    m, f, r = [int(i) for i in input().split]

    if m == f == r == -1:
        break

total = m + f
if m == -1 or f == -1 or total < 30:
    print('F')

elif total < 50 and r < 50:
    print('D')

elif total < 65:
    print('C')
    
elif total < 80:
    print('B')
    
else:
    print('A')

Fixed submission:
while True:
    m, f, r = [int(i) for i in input().split()]
 
    if m == f == r == -1:
        break
 
    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')
 
    elif total < 50 and r < 50:
        print('D')
 
    elif total < 65:
        print('C')
         
    elif total < 80:
        print('B')
 
    else:
        print('A')

Buggy python submission (verdict: Runtime Error):
while True:
    m, f, r = [int(i) for i in input().split]

    if m == f == r == -1:
        break

    total = m + f
    if m == -1 or f == -1 or total < 30:
       print('F')

    elif total < 50 and r < 50:
       print('D')

    elif total < 65:
       print('C')

    elif total < 80:
       print('B')

    else:
        print('A')

Fixed submission:
while True:
    m, f, r = [int(i) for i in input().split()]
 
    if m == f == r == -1:
        break
 
    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')
 
    elif total < 50 and r < 50:
        print('D')
 
    elif total < 65:
        print('C')
         
    elif total < 80:
        print('B')
 
    else:
        print('A')

Buggy python submission (verdict: Runtime Error):
while True:
    m, f, r = [int(i) for i in input().split]

    if m == f == r == -1:
        break

    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')

    elif total < 50 and r < 50:
        print('D')

    elif total < 65:
        print('C')

    elif total < 80:
        print('B')

    else:
        print('A')

Fixed submission:
while True:
    m, f, r = [int(i) for i in input().split()]
 
    if m == f == r == -1:
        break
 
    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')
 
    elif total < 50 and r < 50:
        print('D')
 
    elif total < 65:
        print('C')
         
    elif total < 80:
        print('B')
 
    else:
        print('A')

Buggy python submission (verdict: Runtime Error):
while True:
    m, f, r = [int(i) for i in input().split]

    if m == f == r == -1:
         break

    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')

    elif total < 50 and r < 50:
        print('D')

    elif total < 65:
        print('C')

    elif total < 80:
        print('B')

    else:
        print('A')

Fixed submission:
while True:
    m, f, r = [int(i) for i in input().split()]
 
    if m == f == r == -1:
        break
 
    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')
 
    elif total < 50 and r < 50:
        print('D')
 
    elif total < 65:
        print('C')
         
    elif total < 80:
        print('B')
 
    else:
        print('A')
Buggy python submission (verdict: Runtime Error):
n, m, l, = [int(i) for i in input().split()]

A = []
B = []
C = []

for ni in range(n):
    A.append([int(i) for i in input().split()])

for mi in range(m):
    B.append([int(i) for i in input().split()])

for i in range(n):
    for j in range(l):
        C[i].append(0)
        for k in range(m):
            C[i][j] += A[i][k] * B[k][j]

for li in range(n):
    print(" ".join([str(s) for s in C[li]]))

Fixed submission:
n, m, l = [int(i) for i in input().split()]
 
A = []
B = []
C = []
for ni in range(n):
    A.append([int(i) for i in input().split()])
 
for mi in range(m):
    B.append([int(i) for i in input().split()])
 
for i in range(n):
    C.append([])
    for j in range(l):
        C[i].append(0)
        for k in range(m):
            C[i][j] += A[i][k] * B[k][j]
 
for ni in range(n):
    print(" ".join([str(s) for s in C[ni]]))
Buggy python submission (verdict: Runtime Error):
while True:
    data = int(input())
    if data == 0:
        break
        
    print(sum([int(i) for i in data]))

Fixed submission:
while True:
    data = input()
    if data[0] == '0':
        break

    print(sum([int(i) for i in data]))
Buggy python submission (verdict: Runtime Error):
a,b = [int(i) for i in input().split()]
print(a * b,(a + b) * 2))

Fixed submission:
a, b = [int(i) for i in input().split()]
print(a * b,(a + b) * 2)
Buggy python submission (verdict: Runtime Error):
s = int(input())
s = s % 60
m = s // 60 % 60
h = s // 60 // 60
print({0}{1}{2}.format(h,m,s))

Fixed submission:
S = int(input())

s = S % 60
m = S // 60 % 60
h = S // 60 // 60

print("{0}:{1}:{2}".format(h,m,s))
Buggy python submission (verdict: Runtime Error):
a,b = [int(i) for i in input().split()]

if a<b:
    print("a<b")

elif a>b:
    print("a>b")

else a=b:
    print("a=b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
   print("a < b")


elif a > b:
     print("a > b")


else:
  print("a == b")

Buggy python submission (verdict: Runtime Error):
a,b = [int(i) for i in input().split()]

if a < b:
    print("a < b")

elif a > b:
    print("a > b")

else a == b:
    print("a == b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
   print("a < b")


elif a > b:
     print("a > b")


else:
  print("a == b")

Buggy python submission (verdict: Runtime Error):
a,b = [int(i) for i in input().split()]

if a < b:
    print("a < b")

elif a > b:
    print("a > b")

else a == b:
    print("a == b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
   print("a < b")


elif a > b:
     print("a > b")


else:
  print("a == b")

Buggy python submission (verdict: Runtime Error):
a,b = [int(i) for i in input().split()]

if a<b:
    print("a<b")

elif a>b:
    print("a>b")

else a=b:
    print("a==b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
   print("a < b")


elif a > b:
     print("a > b")


else:
  print("a == b")

Buggy python submission (verdict: Runtime Error):
a,b = [int(i) for i in input().split()]

if a<b:
    print("a<b")

elif a>b:
    print("a>b")

else a==b:
    print("a==b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
   print("a < b")


elif a > b:
     print("a > b")


else:
  print("a == b")

Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split()]

if a<b:
    print("a<b")


elif a > b:
     print("a>b")


else:
  print("a==b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
   print("a < b")


elif a > b:
     print("a > b")


else:
  print("a == b")

Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split()]

if a < b:
   print("a<b")


elif a > b:
     print("a>b")


else:
  print("a==b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
   print("a < b")


elif a > b:
     print("a > b")


else:
  print("a == b")

Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split()]

if a < b:
   print("a < b")


elif a > b:
     print("a > b")


else:
  print("a == b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
   print("a < b")


elif a > b:
     print("a > b")


else:
  print("a == b")
Buggy python submission (verdict: Runtime Error):
a, b c = [input(i) for i in input().split()]

total = 0 
for d in range(a, b + 1):
    if c % d == 0:
        total += 1
        
print(total)

Fixed submission:
a, b, c = [int(i) for i in input().split()]

total = 0 
for d in range(a, b + 1):
    if c % d == 0:
        total += 1
        
print(total)

Buggy python submission (verdict: Runtime Error):
a, b c = [int(i) for i in input().split()]

total = 0 
for d in range(a, b + 1):
    if c % d == 0:
        total += 1
        
print(total)

Fixed submission:
a, b, c = [int(i) for i in input().split()]

total = 0 
for d in range(a, b + 1):
    if c % d == 0:
        total += 1
        
print(total)
Buggy python submission (verdict: Runtime Error):
r = float(input())

s = r * r * math.pi
l = r * 2 * math.pi

print("{0:.5f}{1:.5f}"format(s, l))

Fixed submission:
import math
r = float(input())
 
s = r * r * math.pi
l = r * 2 * math.pi
 
print("{0:.5f} {1:.5f}".format(s, l))
Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    if H == w == 0:
        break
    
    for i in range(H):
        for w in range(W):
            print('#',end='')
            
        print('#', end='')
    
    print()
    
print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#', end='')
        print()
    
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    if H == w == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#',end='')
            
        print('#', end='')
    
    print()
    
print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#', end='')
        print()
    
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    if H == w == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#',end='')
            
      
    
    print()
    
print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#', end='')
        print()
    
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    if H == w == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#',end='')
        
        print()
    
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#', end='')
        print()
    
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    if H == w == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#',end='')
        print()
    
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#', end='')
        print()
    
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    if H == w == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#', end='')
        print()
    
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#', end='')
        print()
    
    print()
Buggy python submission (verdict: Runtime Error):
while True:
    h, w = map(int,input().strip().split())
    if h == w == 0: berak
    for y in range(h):
        print(''.join('#.'[(x + y) % 2] for x in range(w)))
    print()

Fixed submission:
while True:
    h, w = map(int,input().strip().split())
    if h == w == 0: break
    for y in range(h):
        print(''.join('#.'[(x + y) % 2] for x in range(w)))
    print()