Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
import numpy as np
a,b,s=map(float,input().split())
s=np.radians(s)
S=(a*b*np.sin(s))/2
h=b*np.sin(s)
l=a+b+(a**2+b**2-2*a*b*np.cos(s))
print(S)
print(l)
print(h)

Fixed submission:
import math
a,b,c=map(float,input().split())
c=math.radians(c)
h=b*math.sin(c)
s=a*h/2
d=math.sqrt(a**2+b**2-2*a*b*math.cos(c))
l=a+b+d
print(s,l,h)

Buggy python submission (verdict: Runtime Error):
import numpy as np
a,b,s=map(float,input().split())
s=np.radians(s)
S=(a*b*np.sin(s))/2
h=b*np.sin(s)
l=a+b+(a**2+b**2-2*a*b*np.cos(s))**0.5
print(S)
print(l)
print(h)

Fixed submission:
import math
a,b,c=map(float,input().split())
c=math.radians(c)
h=b*math.sin(c)
s=a*h/2
d=math.sqrt(a**2+b**2-2*a*b*math.cos(c))
l=a+b+d
print(s,l,h)

Buggy python submission (verdict: Runtime Error):
import math
x1,y1,x2,y2=map(float,input().split())
x2=x2-x1
y2=y2-y1
x1,y1=0,0
dis=(x2**2+y2**2)
print(math.sqrt(dis))

Fixed submission:
import math
a,b,c=map(float,input().split())
c=math.radians(c)
h=b*math.sin(c)
s=a*h/2
d=math.sqrt(a**2+b**2-2*a*b*math.cos(c))
l=a+b+d
print(s,l,h)
Buggy python submission (verdict: Runtime Error):
y = input()
x = y**3
print(x)

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

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

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

Fixed submission:
a,b=map(int,input().split())
s=a*b
l=(a+b)*2
print(s,l)
Buggy python submission (verdict: Runtime Error):
s=int(input())
h=s//3600
ss=(ss-3600*h)//60
se=(ss-3600*h-h*60)
print("{}:{}:{}".format(h,ss,se)

Fixed submission:
s=int(input())
h=s//3600
ss=(s-3600*h)//60
se=(s-3600*h-ss*60)
print("{}:{}:{}".format(h,ss,se))
Buggy python submission (verdict: Runtime Error):
a,b = [int(i) for i in input().split()]

if a < b:
    print("{a}<{b}".format())

if a > b:
    print("{a}>{b}".format())


if a == b:
    print("{a}=={b}".format())

Fixed submission:
a,b=map(int,input().split())
if a<b:
    print("a < b")
elif a>b:
    print("a > b")
else:
    print("a == b")
Buggy python submission (verdict: Runtime Error):
z = [input(i) for i in input().split()]
z =[int(i) for i in input().split()]
  
z.sort()
print("{0} {1} {2}".format(z[0],z[1],z[2]))

Fixed submission:
a=list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])

Buggy python submission (verdict: Runtime Error):
a=list(map(int.input().split()))
a=sort(a)
print(" ".join(a))

Fixed submission:
a=list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])

Buggy python submission (verdict: Runtime Error):
a=list(map(int,input().split()))
a=a.sort()
print(" ".join(a))

Fixed submission:
a=list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])

Buggy python submission (verdict: Runtime Error):
a=list(map(int,input().split()))
a.sort()
print(" ".join(a))

Fixed submission:
a=list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])

Buggy python submission (verdict: Runtime Error):
a=list(map(int,input().split()))
a.sort()
print(" ".join(a))
a=list(map(int,input().split()))
a.sort()
alist=[]
for i in a:
    alist+=str(i)
print(" ".join(alist))

Fixed submission:
a=list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])
Buggy python submission (verdict: Runtime Error):
W,H,x,y,r = [int() for i in input().split()]

if (r > x) or (r > w-x) or (r > y) or (r > H-y):
    print('Yes')
else:
    print('No')

Fixed submission:
W,H,x,y,r=[int(x) for x in input().split()]
if r<=x<=(W-r) and r<=y<=(H-r):
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
while True:
    a=int(input())
    if a ==0:
        break

    i=1
    print(Case i: a)
    i+=1
    

Fixed submission:
i=0
while True:
    a = int(input())
    if a == 0:
        break
    i += 1
    print("Case {}: {}".format(i,a))

Buggy python submission (verdict: Runtime Error):
while True:
    a = int(input())
    if a == 0:
        break

    i = 1
    print("Case {}: {}.format(i,a))
    i += 1

Fixed submission:
i=0
while True:
    a = int(input())
    if a == 0:
        break
    i += 1
    print("Case {}: {}".format(i,a))
Buggy python submission (verdict: Runtime Error):
z = int().split()
a=z[0]
b=z[1]
c=[2]
count=0
for i in range(a,b+1) :
    if c%i == 0:
        count += 1
print(count)

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

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

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

Buggy python submission (verdict: Runtime Error):
a,b,c=int().split()
count=0
for i in range(a,b+1) :
    if c%i == 0:
        count += 1
print(count)

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

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

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

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

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

Buggy python submission (verdict: Runtime Error):
a,b,c=input().split()
count=0
for i in range(a,b+1) :
    if c%i == 0:
        count += 1
print(count)

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

Buggy python submission (verdict: Runtime Error):
while True:
    a=list(map(int,input().split()))
    if a[0]==0 and a[1]==0:
        break
    a.sort()
    print("{} {}".format(a[0],a[1]))
    

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

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

Fixed submission:
a,b,c=map(int,input().split())
d=[i for i in range(a,b+1)]
count=0
for i in d:
    if c%i==0:
        count+=1
print(count)
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
d=a%b
r=a%b-d
f=flort(r)
print("{} {} {}".format())

Fixed submission:
a,b=map(int,input().split())
d=a//b
r=a%b
f=float(a/b)
print('{0} {1} {2:0.5f}'.format(d, r, f))

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
d=a//b
r=a%b
f=float(a/b)
print("{} {} {}".format())

Fixed submission:
a,b=map(int,input().split())
d=a//b
r=a%b
f=float(a/b)
print('{0} {1} {2:0.5f}'.format(d, r, f))

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
d=a//b
r=a%b
f=float(a/b)
print(f"{d r f}")

Fixed submission:
a,b=map(int,input().split())
d=a//b
r=a%b
f=float(a/b)
print('{0} {1} {2:0.5f}'.format(d, r, f))

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
d=a//b
r=a%b
f=float(a/b)
print(f"{d r f: f5}")

Fixed submission:
a,b=map(int,input().split())
d=a//b
r=a%b
f=float(a/b)
print('{0} {1} {2:0.5f}'.format(d, r, f))
Buggy python submission (verdict: Runtime Error):
import math
r=int().input()
c = r * r *math.pi
cf = r *2 *math.pi
print(f"}(c:0.5f) (cf:0.5f)}) 

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

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

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

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

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

Buggy python submission (verdict: Runtime Error):
import math
r=float().input()
c = r * r *math.pi
cf = r *2 *math.pi
print("{0:.5f} {1:.5f}".format(c,cf))

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

Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
s=r**2*math.pi
l=2*r*math.pi
print(s,l)

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

Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
s=r**2*math.pi
l=2*r*math.pi
print(float(s),float(l))

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

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

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

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

Fixed submission:
import math
r = float(input())
s=r**2*math.pi
l=2*r*math.pi
print('{:.6f} {:.6f}'.format(s,l))
Buggy python submission (verdict: Runtime Error):
import sys

a,b,c =sys.stdin.realine.split()
if b == "+":
    d = a+c
    print(d)
if b=="-":
    d = a-c
    print(d)
if b=="*":
    d = a*c
    print(d)
if b=="/":
    d=a//c
    print(d)

Fixed submission:
import math
while True:
    a, op, b = map(str, input().split())
    a, b = int(a), int(b)
    if op=='+':
        print(math.floor(a+b))
    elif op=='-':
        print(math.floor(a-b))
    elif op=='*':
        print(math.floor(a*b))
    elif op=='/':
        print(math.floor(a/b))
    else:
        break
Buggy python submission (verdict: Runtime Error):
n=int(input())
a = map(int(),input().split())
as =a.sort()
max =as[-1]
mum =as[0]
sum=sum(as)
print("{} {} {}".format(mum,max,sum))

Fixed submission:
n=int(input())
a=list(map(int,input().split()))
mi=min(a)
ma=max(a)
s=sum(a)
print(mi,ma,s)
Buggy python submission (verdict: Runtime Error):
a,b=input().split()
h=int(a)
w=int(b)
if h ==0 and w==0:
   break
for i in range(h):
   print("#"*w)


   

Fixed submission:
while True:
    a,b=map(int,input().split())
    if a==0 and b==0:
        break
    for i in range(a):
        print("#"*b)
    print("")

Buggy python submission (verdict: Runtime Error):
while True:
    a,b=map(int,input().split())
    if a==0 and b==0:
        breal
    for i in range(a):
        print("#"*b)
    print("")

Fixed submission:
while True:
    a,b=map(int,input().split())
    if a==0 and b==0:
        break
    for i in range(a):
        print("#"*b)
    print("")
Buggy python submission (verdict: Runtime Error):
while True:
    a = input().split()
    h=int(a)
    w=int(b)
    if h ==0 and w==0:
        break
    else:
        print(w*"#")
        if h>=3 and h>=3:
            for i in range(h-2):
                print(1*"#"+(w-2)*"."+1*"#")

            print(w * "#")
        elif h==2:
            print(w * "#")
        print(" ")

Fixed submission:
while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    for i in range(a):
        if i == 0 or i == a-1:
            print("#" * b)
        else:print("#"+"."*(b-2)+"#")
    print("")
Buggy python submission (verdict: Runtime Error):
n=int(input())
a=list(map(int,input().split()))
a=a[::-1]
print(" ".join(a))

Fixed submission:
n=int(input())
a=list(map(str,input().split()))
a=a[::-1]
print(" ".join(a))
Buggy python submission (verdict: Runtime Error):
all=set()
for i in ['S','H','C','D']:
    for j in range(1,14):
        all=all.add('{0} {1}'.format(str(i), str(j)))
n=input() .split()
while True:
    a=input().split()
    t += str(a[0])
    r =+ int(a[1])
all2=set()
for y in t:
    for u in r:
        all2 = all2.add('{0} {1}'.format(str(y),str(u))
print(all-all2)

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):
all=set()
for i in ['S','H','C','D']:
    for j in range(1,14):
        all=all.add('{0} {1}'.format(str(i), str(j)))
n=input() .split()
while o < n:
    a=input().split()
    t += str(a[0])
    r += str(a[1])
    o +=1
all2=set()
for y in t:
    for u in r:
        all2 = all2.add('{0} {1}'.format(str(y),str(u))
print(all-all2)

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):
data = [[[0 for i in range(10)] for j in range(3)] for h in range(4)]
n = int(input())
for o in range(n):
    a = input().split()
    b = int(a[0])
    f = int(a[1])
    r = int(a[2])
    v = int(a[3])
    data[b - 1][f - 1][r - 1] = v
    count = 0
    counta = 0
for c in data:
    for d in c:
        for e in d:
            print(e+' ', end='')
            count += 1
            counta += 1
        if count == 10:
            print()
            count = 0
        if counta == 30 or counta==60 or counta ==90:
            print('#'*20)

Fixed submission:
a=[int('0') for i in range(10)]
w=["#" for i in range(20)]
z=[]
for i in range(15):
    z+=[a]
    if i == 3 or i== 7 or i== 11:
        z+=[w]
x=[[[0 for i in range(10)] for k in range(3)] for j in range(4)]
n=int(input())
for i in range(n):
    b,f,r,v=map(int,input().split())
    x[b-1][f-1][r-1]+=v

for i in range(4):
    for k in range(3):
        print(" "+" ".join(str(x[i][k][o]) for o in range(10)))
    if i ==0 or i ==1 or i==2:
        print("#"*20)
Buggy python submission (verdict: Runtime Error):
n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
    a+=[[int(i) for i in input().split()]]
for i in range(m):
    b+=[[int(i) for i in input().split()]]
for i in range(n):
    for j in range(m):
        z+=[a[i][j]*b[j][0]]
    x+=[sum(z)]
    z=0
for i in range(m):
    print(x[m])

Fixed submission:
n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
    a+=[[int(i) for i in input().split()]]
for i in range(m):
    b+=[[int(i) for i in input().split()]]
for i in range(n):
    for j in range(m):
        z+=[a[i][j]*b[j][0]]
    x+=[sum(z)]
    z=[]
for i in range(n):
    print(x[i])

Buggy python submission (verdict: Runtime Error):
n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
    a+=[[int(i) for i in input().split()]]
for i in range(m):
    b+=[[int(i) for i in input().split()]]
for i in range(n):
    for j in range(m):
        z+=[a[i][j]*b[j][0]]
    x+=[sum(z)]
    z=0
for i in range(m):
    print(x[i])

Fixed submission:
n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
    a+=[[int(i) for i in input().split()]]
for i in range(m):
    b+=[[int(i) for i in input().split()]]
for i in range(n):
    for j in range(m):
        z+=[a[i][j]*b[j][0]]
    x+=[sum(z)]
    z=[]
for i in range(n):
    print(x[i])

Buggy python submission (verdict: Runtime Error):
n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
    a+=[[int(i) for i in input().split()]]
for i in range(m):
    b+=[[int(i) for i in input().split()]]
for i in range(n):
    for j in range(m):
        z+=[a[i][j]*b[j][0]]
    x+=[sum(z)]
    z=[]
for i in range(m):
    print(x[i])

Fixed submission:
n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
    a+=[[int(i) for i in input().split()]]
for i in range(m):
    b+=[[int(i) for i in input().split()]]
for i in range(n):
    for j in range(m):
        z+=[a[i][j]*b[j][0]]
    x+=[sum(z)]
    z=[]
for i in range(n):
    print(x[i])
Buggy python submission (verdict: Runtime Error):
while True:
    m,f,r=map(int,input().split())
    if m==-1 and f==-1 and r==-1:
        break
        
    elif m==-1 or f==-1:
        print('F')
    elif m+f>=80:
        print("A")
    elif m+f>=65:
        print("B")
    elif m+f>=50 or (r>=50 and m+f>=30:
        print('C')
    elif m+f>=30:
        print("D")
    elif m+f<30 :
        print("F")
    
    
        
        

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

for i in range(m):
    b+=[list(map(int,input().split()))]
    
c=[[a[i][k]*b[k][i] for i in range(n)] for k in range(l)]
print(c)

Fixed submission:
n,m,l=map(int,input().split())
a=[]
b=[]
for i in range(n):
    a+=[list(map(int,input().split()))]

for i in range(m):
    b+=[list(map(int,input().split()))]
  
c=[]
c=[[sum(a[i][k]*b[k][j] for k in range(m))for j in range(l)] for i in range(n)]
[print(" ".join(list(map(str,c[i])))) for i in range(n)]
Buggy python submission (verdict: Runtime Error):
a=0

while True:
    z=str(input())
    for i in z:
        k=int(i)
        a+=k
    print(a)
    a=0
    if z == 0 :  
        break

Fixed submission:
while True:
    z=list(map(int,(list(str(input())))))
    if z[0]==0:
        break
    print(sum(z))

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

while True:
    z=str(input())
    for i in z:
        k=int(i)
        a+=k
    print(a)
    a=0
    if z == 0 :  
        break

Fixed submission:
while True:
    z=list(map(int,(list(str(input())))))
    if z[0]==0:
        break
    print(sum(z))

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

while True:
    z=str(input())
    for i in z:
        k=int(i)
        a+=k
    print(a)
    a=0
    if z == 0 :  
        break

Fixed submission:
while True:
    z=list(map(int,(list(str(input())))))
    if z[0]==0:
        break
    print(sum(z))

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

while True:
    z=str(input())
    for i in z:
        k=int(i)
        a+=k
    print(a)
    a=0
  

Fixed submission:
while True:
    z=list(map(int,(list(str(input())))))
    if z[0]==0:
        break
    print(sum(z))

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

while True:
    z=str(input())
    if z == 0 :
        break
    for i in z:
        k=int(i)
        a+=k
    print(a)
    a=0

Fixed submission:
while True:
    z=list(map(int,(list(str(input())))))
    if z[0]==0:
        break
    print(sum(z))
Buggy python submission (verdict: Runtime Error):
x=list(input())
import re
p=r'\d'

while True:
    s=str(input())
    if not re.match(p,s):
        print(a+b)
        x = list(input())
    elif s=="-":
        print(a+b)
        break
    else:
        a, b = x[:len(x) - int(s)], x[-int(s):]

Fixed submission:

while True:
    z = list(map(str, input()))
    if "-" in z:
        break
    n = int(input())
    for i in range(n):
        a=int(input())
        z=z[a:]+z[:a]
    print("".join(z))

Buggy python submission (verdict: Runtime Error):
x=list(input())
import re
p=r'\d'

while True:
    s=str(input())
    if not re.match(p,s):
        print(a+b)
        print('')
        x = list(input())
    elif s=="-":
        print(a+b)
        break
    else:
        a, b = x[:len(x) - int(s)], x[-int(s):]

Fixed submission:

while True:
    z = list(map(str, input()))
    if "-" in z:
        break
    n = int(input())
    for i in range(n):
        a=int(input())
        z=z[a:]+z[:a]
    print("".join(z))

Buggy python submission (verdict: Runtime Error):
x=list(input())
import re
p=r'\d'

while True:
    s=str(input())
    if not re.match(p,s):
        print(a+b)
        x = list(input())
    elif s=="-":
        print(a+b)
        break
    else:
        a, b = x[:len(x) - int(s)], x[-int(s):]

Fixed submission:

while True:
    z = list(map(str, input()))
    if "-" in z:
        break
    n = int(input())
    for i in range(n):
        a=int(input())
        z=z[a:]+z[:a]
    print("".join(z))
Buggy python submission (verdict: Runtime Error):
a,b=input().split()
print(int(a)*int(b)+" "+(int(a)*2+int(b)*2))

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

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

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

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

Fixed submission:
x=input().split()
a=int(x[0])
b=int(x[1])
print(a*b,(a*2+b*2))
Buggy python submission (verdict: Runtime Error):
seconds=int(input())
hour, amari = divmod(seconds,3600)
minute, second = divmod(amari,60)

print(hour+":"+minute+":"+second)

Fixed submission:
seconds=int(input())
hour, amari = divmod(seconds,3600)
minute, second = divmod(amari,60)

print("{0}:{1}:{2}".format(hour,minute,second))
Buggy python submission (verdict: Runtime Error):
x = map(int,input().split())
print(" ".join(x.sort()))

Fixed submission:
x = list(map(int,input().split()))
x = sorted(x)
print("{0} {1} {2}".format(x[0],x[1],x[2]))

Buggy python submission (verdict: Runtime Error):
x = map(int,input().split())
print(" ".join(x.sort()))

Fixed submission:
x = list(map(int,input().split()))
x = sorted(x)
print("{0} {1} {2}".format(x[0],x[1],x[2]))

Buggy python submission (verdict: Runtime Error):
x = list(map(int,input().split()))
x = sorted(x)
print("{0} {1} {2}".format(x[0],x[1],x[2])

Fixed submission:
x = list(map(int,input().split()))
x = sorted(x)
print("{0} {1} {2}".format(x[0],x[1],x[2]))

Buggy python submission (verdict: Runtime Error):
x = list(map(int,input().split()))
x = x.sort()
print("{0} {1} {2}".format(x[0],x[1],x[2])

Fixed submission:
x = list(map(int,input().split()))
x = sorted(x)
print("{0} {1} {2}".format(x[0],x[1],x[2]))

Buggy python submission (verdict: Runtime Error):
x = list(map(int,input().split()))
x = x.sort()
print("{0} {1} {2}".format(x[0],x[1],x[2]))

Fixed submission:
x = list(map(int,input().split()))
x = sorted(x)
print("{0} {1} {2}".format(x[0],x[1],x[2]))
Buggy python submission (verdict: Runtime Error):
count=0
while x != 0:
    x=int(input())
    print("Case {0}: x".format(count))

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

Buggy python submission (verdict: Runtime Error):
count=0
while x != 0:
    x=int(input())
    print("Case {0}: x".format(count))
    count += 1

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

Fixed submission:
while True:
    x=input().split()
    if x == ["0","0"]:
        break
    x=list(map(int,x))
    x= sorted(x)
    a,b=x[0], x[1]
    print("{0} {1}".format(a,b))