Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
#coding: UTF-8

x = input()

i = 1

while x !=0:
    print('Case '+i+': '+x)
    i +=1



Fixed submission:
c = 0

while True:
    x = int(input())
    c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Runtime Error):
#coding: UTF-8

x=input()

i=1

while x !='0':
    print('Case '+i+': '+x)
    i +=1




Fixed submission:
c = 0

while True:
    x = int(input())
    c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Time Limit Exceeded):
#coding: UTF-8

x=int(input())

i=1

while x !=0:
    print('Case {}: {}'.format(i,x))
    i=i+1



Fixed submission:
c = 0

while True:
    x = int(input())
    c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Time Limit Exceeded):
#coding: UTF-8

x=int(input('>'))

i=1

while x !=0:
    print('Case {}: {}'.format(i,x))
    i=i+1



Fixed submission:
c = 0

while True:
    x = int(input())
    c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Time Limit Exceeded):
#coding: UTF-8

x=int(input('>'))

i=1

while x !=0:
    print('Case {}: {}'.format(i,x))
    i=i+1;




Fixed submission:
c = 0

while True:
    x = int(input())
    c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Runtime Error):
c = 0

while True:
    x = int(input()) ; c +=1
    if x == 0:
        break
    else:
        print("Case {}: {}.format(c, x))


Fixed submission:
c = 0

while True:
    x = int(input())
    c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Runtime Error):
c = 0

while True:
    x = int(input()) ; c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}.format(c, x))


Fixed submission:
c = 0

while True:
    x = int(input())
    c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Runtime Error):
c = 0

while True:
    x = int(input())
　　c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))


Fixed submission:
c = 0

while True:
    x = int(input())
    c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Runtime Error):
c = 0

while True:
    x = int(input())　; c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))


Fixed submission:
c = 0

while True:
    x = int(input())
    c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Runtime Error):
c = 0

while True:
    x = int(input()) ; c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}).format(c, x))


Fixed submission:
c = 0

while True:
    x = int(input())
    c +=1
    
    if x == 0:
        break
   
    print("Case {}: {}".format(c, x))
Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().split())

d = a // b

r = a % b

f = a / b

print("{%d} {%d} {%f}".format(d,r,f))




Fixed submission:
a, b = map(int, input().split())

print("%d %d %f" % (a//b, a%b, a/b))

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

#x = a // b

#y = a % b

#z = a / b

print("{%d} {%d} {%f}".format(a//b, a%b,a/b))



Fixed submission:
a, b = map(int, input().split())

print("%d %d %f" % (a//b, a%b, a/b))

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

#x = a // b

#y = a % b

#z = a / b

print("{%d} {%d} {%f}".format(int(a//b), int(a%b),float(a/b)))



Fixed submission:
a, b = map(int, input().split())

print("%d %d %f" % (a//b, a%b, a/b))
Buggy python submission (verdict: Runtime Error):
import math

r = int(input())

s = math.pi * (r ** 2)

p = 2 * math.pi * r

print(s,p)


Fixed submission:
from math import pi

r = float(input())

s = pi * (r ** 2)

p = 2 * pi * r

print(s,p)

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

r = input()

s = math.pi * (r ** 2)

p = 2 * math.pi * r

print(s,p)


Fixed submission:
from math import pi

r = float(input())

s = pi * (r ** 2)

p = 2 * pi * r

print(s,p)

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

r = input()

s = math.pi * (r ** 2)

p = 2 * math.pi * r

print(s,p)


Fixed submission:
from math import pi

r = float(input())

s = pi * (r ** 2)

p = 2 * pi * r

print(s,p)

Buggy python submission (verdict: Runtime Error):
from math import pi

r = foat(input())

s = pi * r * r

p = 2 * pi * r

print(s,p)



Fixed submission:
from math import pi

r = float(input())

s = pi * (r ** 2)

p = 2 * pi * r

print(s,p)

Buggy python submission (verdict: Runtime Error):
import math.pi

r = float(input())

s = math.pi * (r ** 2)

p = 2 * math.pi * r

print(s,p)



Fixed submission:
from math import pi

r = float(input())

s = pi * (r ** 2)

p = 2 * pi * r

print(s,p)
Buggy python submission (verdict: Runtime Error):
input()
 
a = map(int, input().split())
 
sum = 0
 
for x in a:
    sum += x
 
print(min(a), max(a), sum)



Fixed submission:
input()

a = list(map(int, input().split()))

s = 0

for i in a:
    s = s + i

print(min(a), max(a), s)

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

a = list(map(int, input().split())

sum = 0

for x in a:
    sum += x

print(min(a), max(a), sum)


Fixed submission:
input()

a = list(map(int, input().split()))

s = 0

for i in a:
    s = s + i

print(min(a), max(a), s)

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

a = list(map(int, input().split()))

s = 0

for i in len(a):
    s += i

print(min(a), max(a), s)


Fixed submission:
input()

a = list(map(int, input().split()))

s = 0

for i in a:
    s = s + i

print(min(a), max(a), s)

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

a = list(map(int, input().split()))

s = 0

for i in len(a):
    s = s + i

print(min(a), max(a), s)


Fixed submission:
input()

a = list(map(int, input().split()))

s = 0

for i in a:
    s = s + i

print(min(a), max(a), s)
Buggy python submission (verdict: Runtime Error):
H, W = int(input().split())

while True:
    if (H + W == 0) : break
    
    for i in range(0, W-1):
        print('#' * H)        


Fixed submission:
while True:
    H, W = map(int, input().split())

    if (H + W == 0) : break
    
    for i in range(H):
        print('#' * W)

    print()

Buggy python submission (verdict: Runtime Error):
H, W = int(input().split())

while True:
    if (H + W == 0) : break
    
    for i in range(0, W-1):
        print('#' * H)        


Fixed submission:
while True:
    H, W = map(int, input().split())

    if (H + W == 0) : break
    
    for i in range(H):
        print('#' * W)

    print()

Buggy python submission (verdict: Runtime Error):
H, W = map(int(input().split()))

while True:
    if (H + W == 0) : break
    
    for i in range(0, H-1):
        print('#' * W)



Fixed submission:
while True:
    H, W = map(int, input().split())

    if (H + W == 0) : break
    
    for i in range(H):
        print('#' * W)

    print()

Buggy python submission (verdict: Time Limit Exceeded):
H, W = map(int, input().split())

while True:
    if (H + W == 0) : break
    
    for i in range(0, H-1):
        print('#' * W)



Fixed submission:
while True:
    H, W = map(int, input().split())

    if (H + W == 0) : break
    
    for i in range(H):
        print('#' * W)

    print()

Buggy python submission (verdict: Time Limit Exceeded):
H, W = map(int, input().split())

while True:
    if (H + W == 0) : break
    
    for i in range(H):
        print('#' * W)



Fixed submission:
while True:
    H, W = map(int, input().split())

    if (H + W == 0) : break
    
    for i in range(H):
        print('#' * W)

    print()

Buggy python submission (verdict: Time Limit Exceeded):
H, W = map(int, input().split())

while True:
    if (H + W == 0) : break
    
    for i in range(H):
        print('#' * W)

    print()



Fixed submission:
while True:
    H, W = map(int, input().split())

    if (H + W == 0) : break
    
    for i in range(H):
        print('#' * W)

    print()

Buggy python submission (verdict: Time Limit Exceeded):
H, W = map(int, input().split())

while True:
    if (H + W == 0) : break
    
    for i in range(H):
        print('#' * W)

    print("")



Fixed submission:
while True:
    H, W = map(int, input().split())

    if (H + W == 0) : break
    
    for i in range(H):
        print('#' * W)

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

SUITS = ('S', 'H', 'C', 'D')
cards = {suit:{i for i in range(1, 14)} for suit in SUITS}

input()

for line in sys.stdin:
    suit, number = line.split()
    cards[suit].discard(int(number))

for suit in SUITS:
    for i in cards[suit]:
    print(suit, i)







Fixed submission:
import sys

SUITS = ('S', 'H', 'C', 'D')
cards = {suit:{i for i in range(1, 14)} for suit in SUITS}

input()

for line in sys.stdin:
    suit, number = line.split()
    cards[suit].discard(int(number))

for suit in SUITS:
    for i in cards[suit]:
        print(suit, i)

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

SUITS = ('S', 'H', 'C', 'D')
cards = {suit:{i for i in range(1, 14)} for suit in SUITS}

n = input()

for line in sys.stdin:
    suit, number = line.split()
    cards[suit].discard(int(number))

for suit in SUITS:
    for i in cards[suit]:
    print(suit, i)







Fixed submission:
import sys

SUITS = ('S', 'H', 'C', 'D')
cards = {suit:{i for i in range(1, 14)} for suit in SUITS}

input()

for line in sys.stdin:
    suit, number = line.split()
    cards[suit].discard(int(number))

for suit in SUITS:
    for i in cards[suit]:
        print(suit, i)
Buggy python submission (verdict: Runtime Error):
a=input()
print a**3

Fixed submission:
a=input()
print a**3

Buggy python submission (verdict: Runtime Error):

h1 = int(raw_input())

h1 = h1**3

print( h1 )



Fixed submission:
import sys
input_line2 = int(sys.stdin.readline())
#print ("\r\n")
print (input_line2**3)
#print ("\r\n")

Buggy python submission (verdict: Runtime Error):

h1 = int(raw_input())

print( h1**3 )


Fixed submission:
import sys
input_line2 = int(sys.stdin.readline())
#print ("\r\n")
print (input_line2**3)
#print ("\r\n")

Buggy python submission (verdict: Runtime Error):
for x in range(100):

    h1 = int(raw_input())

    h1 = h1**3

    print( str(h1) + "\r\n")



Fixed submission:
import sys
input_line2 = int(sys.stdin.readline())
#print ("\r\n")
print (input_line2**3)
#print ("\r\n")

Buggy python submission (verdict: Runtime Error):
h1 = int(raw_input())

h1 = h1**3

print("\r\n")

print( str(h1) + "\r\n")



Fixed submission:
import sys
input_line2 = int(sys.stdin.readline())
#print ("\r\n")
print (input_line2**3)
#print ("\r\n")
Buggy python submission (verdict: Runtime Error):
from math import pi
print('{.5f} {.5f}'.format(r*r*pi,r*2*pi)

Fixed submission:
from math import pi
r = float(input())
print('{:.5f} {:.5f}'.format(r*r*pi,r*2*pi))

Buggy python submission (verdict: Runtime Error):
from math import pi
r = int(input())
print('{.5f} {.5f}'.format(r*r*pi,r*2*pi))

Fixed submission:
from math import pi
r = float(input())
print('{:.5f} {:.5f}'.format(r*r*pi,r*2*pi))

Buggy python submission (verdict: Runtime Error):
from math import pi
r = int(input())
print('{:.5f} {:.5f}'.format(r*r*pi,r*2*pi))

Fixed submission:
from math import pi
r = float(input())
print('{:.5f} {:.5f}'.format(r*r*pi,r*2*pi))

Buggy python submission (verdict: Runtime Error):
from math import pi
r = int(input())
print('{:.5f} {:.5f}'.format(r*r*pi,r*2*pi))

Fixed submission:
from math import pi
r = float(input())
print('{:.5f} {:.5f}'.format(r*r*pi,r*2*pi))

Buggy python submission (verdict: Runtime Error):
from math import pi
r = int(input())
print('{0:.5f} {1:.5f}'.format(r*r*pi,r*2*pi))

Fixed submission:
from math import pi
r = float(input())
print('{:.5f} {:.5f}'.format(r*r*pi,r*2*pi))
Buggy python submission (verdict: Runtime Error):
while True:
    y,x = [int(i) for i in input().split()]
    if y,x == 0:
        break
    for i in range(y):
        print('#'*x)
    print()

Fixed submission:
while True:
    y,x = [int(i) for i in input().split()]
    if y == 0:
        break
    for i in range(y):
        print('#'*x)
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    y,x = [int(i) for i in input().split()]
    if y and x == 0:
        break
    for i in range(y):
        print('#'*x)
    print()

Fixed submission:
while True:
    y,x = [int(i) for i in input().split()]
    if y == 0:
        break
    for i in range(y):
        print('#'*x)
    print()
Buggy python submission (verdict: Runtime Error):
print(a[::-1].rsplit('\n',1)[0])

Fixed submission:
input()
print(' '.join(input().split()[::-1]))
Buggy python submission (verdict: Runtime Error):
x = STDIN
print x**3

Fixed submission:
x = input()
print x**3
Buggy python submission (verdict: Runtime Error):
using namespace std;
 
int main() {
 int s;
 
 cin >> s;
 
 int h = s / 3600;
 s -= h * 3600;
 int m = s / 60;
 s -= m * 60;
 
 cout << h << ":" << m << ":" << s << endl;
 
 return 0;
}

Fixed submission:
s = int(input())
h = s / 3600
i = s % 3600
m = i / 60
j = i % 60
 
print(str(int(h)) + ":" + str(int(m)) + ":" + str(int(j)))
Buggy python submission (verdict: Runtime Error):
num = map(int,raw_input().split)
if num[0]>num[1] :
    print str(num[0]) + " > " + str(num[1])  
elif num[0]<num[1] :
    print str(num[0]) + " < " + str(num[1])  
else :
    print str(num[0]) + " == " + str(num[1])  

Fixed submission:
num = map(int,raw_input().split())
if num[0]>num[1] :
    print "a > b"  
elif num[0]<num[1] :
    print "a < b"  
else :
    print "a == b"
Buggy python submission (verdict: Runtime Error):
S = int(input())
h =
m = 
s =
print(h, m, s, sep=':')

Fixed submission:
x = int(input());
h = x // 3600;
m = x % 3600 // 60;
s = x % 60;
 
print(h,m,s,sep=':');

Buggy python submission (verdict: Runtime Error):
S = int(input())
h =x // 3600;
m =x %3600 //60;
s =x % 60;
print(h, m, s, sep=':')

Fixed submission:
x = int(input());
h = x // 3600;
m = x % 3600 // 60;
s = x % 60;
 
print(h,m,s,sep=':');
Buggy python submission (verdict: Runtime Error):
nums = input().split()
a = int(nams[0])
b = int(nums[1])
c = int(nums[2])
if a < b < c:
    print(a,b,c,)

Fixed submission:
x = input().split()
 
a = int(x[0])
b = int(x[1])
c = int(x[2])
 
if a < b < c :
    print("Yes")
else :
    print("No")

Buggy python submission (verdict: Runtime Error):
 
using namespace std;
 
int main()
{
    int a = 0, b = 0, c = 0;
     
    cin >> a >> b >> c;
     
    if(a < c){
        if(a < b && b < c)
            cout << "Yes" << endl;
        else
            cout << "No" << endl;
    }
    else
        cout << "No" << endl;
     
    return 0;
}

Fixed submission:
x = input().split()
 
a = int(x[0])
b = int(x[1])
c = int(x[2])
 
if a < b < c :
    print("Yes")
else :
    print("No")
Buggy python submission (verdict: Runtime Error):
input()
date = input().split()

minimum = min(date)
maximum = max(date)
total = sum(date)

print(minimum, maximum, total)

Fixed submission:
input()
data = [int(i) for i in input().split()]
  
minimum = min(data)
maximum = max(data)
total = sum(data)
  
print(minimum, maximum, total)
Buggy python submission (verdict: Runtime Error):
(m, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(m):
    A.append([int(j) for j in input().split()])

for i in range(m):
    b.apped(int(input()))

c = []
for i in range(n):
    s = 0
    for j in range(m):
        m += A[n][m] * b[m]
    print(m)

Fixed submission:
(n, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
    A.append([int(j) for j in input().split()])
  
for r in range(m):
    b.append(int(input()))
  
for i in range(n):
    s = 0
    for j in range(m):
        s += A[i][j] * b[j]
    print(s)

Buggy python submission (verdict: Runtime Error):
(m, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(m):
    A.append([int(j) for j in input().split()])

for i in range(m):
    b.apped(int(input()))

c = []
for i in range(n):
    s = 0
    for j in range(m):
        m += A[n][m] * b[m]
    print(m)

Fixed submission:
(n, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
    A.append([int(j) for j in input().split()])
  
for r in range(m):
    b.append(int(input()))
  
for i in range(n):
    s = 0
    for j in range(m):
        s += A[i][j] * b[j]
    print(s)
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
 
    s = m + f
 
    if m == -1 or f == -1 or s < 30:
        print('F')
    elif s < 50 and r < 50:
        print('D')
    elif s < 65:
        print('C')
    elif s < 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
 
    s = m + f
 
    if m == -1 or f == -1 or s < 30:
        print('F')
    elif s < 50 and r < 50:
        print('D')
    elif s < 65:
        print('C')
    elif s < 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
 
    s = m + f
 
    if m == -1 or f == -1 or s < 30:
        print('F')
    elif s < 50 and r < 50:
        print('D')
    elif s < 65:
        print('C')
    elif s < 80:
        print('B')
    else:
        print('A')
Buggy python submission (verdict: Runtime Error):
  n, m, L = map(int, input().split())
 
a = [list(map(int, input().split())) for _ in range(n)]
b = [list(map(int, input().split())) for _ in range(m)]
c = [[sum(ak * bk for ak, bk in zip(ai,bj)) for bj in zip(*b)] for ai in a]
 
for ci in c:
    print(*ci)

Fixed submission:
n, m, L = map(int, input().split())
 
a = [list(map(int, input().split())) for _ in range(n)]
b = [list(map(int, input().split())) for _ in range(m)]
c = [[sum(ak * bk for ak, bk in zip(ai,bj)) for bj in zip(*b)] for ai in a]
 
for ci in c:
    print(*ci)
Buggy python submission (verdict: Runtime Error):
nums = input(3).split(5)
a = int(nums[0])
b = int(nums[1])
print(a * b,(a + b) * 2)

Fixed submission:
nums = input().split()
a = int(nums[0])
b = int(nums[1])
print(a * b,(a + b) * 2)

Buggy python submission (verdict: Runtime Error):
nums=input(3).split(5)
a=int(nums[0])
b=int(nums[1])
print(a*b,(a+b)*2)

Fixed submission:
nums = input().split()
a = int(nums[0])
b = int(nums[1])
print(a * b,(a + b) * 2)

Buggy python submission (verdict: Runtime Error):
nums = input(a).split(b)
a = int(nums[0])
b = int(nums[1])
print(a*b,(a+b)*2)

Fixed submission:
nums = input().split()
a = int(nums[0])
b = int(nums[1])
print(a * b,(a + b) * 2)
Buggy python submission (verdict: Runtime Error):
nums = ['a', 'b', 'c']
a = int(nums[0])
b = int(nums[1])
c = int(nums[2])
if a < b < c:
    print('Yes')
else:
    print('No')

Fixed submission:
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[2])
if a < b < c:
    print('Yes')
else:
    print('No')

Buggy python submission (verdict: Runtime Error):
nums = input().split().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[2])
if a < b < c
    print('Yes')
else:
    print('No')

Fixed submission:
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[2])
if a < b < c:
    print('Yes')
else:
    print('No')

Buggy python submission (verdict: Runtime Error):
nums = input().split()
a = (nums[0])
b = (nums[1])
c = (nums[2])
if a < b < c:
    print(Yes)
else:
    print(No)

Fixed submission:
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[2])
if a < b < c:
    print('Yes')
else:
    print('No')

Buggy python submission (verdict: Runtime Error):
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[2])
if a < b < c:
    print('Yes')
else
    print('No')

Fixed submission:
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[2])
if a < b < c:
    print('Yes')
else:
    print('No')