Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
# coding: utf-8
# Here your code !
a,b,c = input().split()
if(a <= b <= c):
    print('%d %d %d'%(a,b,c))
if(a >= b >= c):
    print('%d %d %d'%(c,b,a))
if(a > c > b):
    print('%d %d %d'%(a,c,b))
if(b > a >= c):
    print('%d %d %d'%(b,a,c))
if(b > c > a):
    print('%d %d %d'%(b,c,a))
if(c > b >= a):
    print('%d %d %d'%(c,b,a))
if(c > a > b):
    print('%d %d %d'%(c,a,b))

Fixed submission:
# coding: utf-8
# Here your code !

line = input().strip().split(" ")

if int(line[0]) <= int(line[1]):
    if int(line[1]) <= int(line[2]):
        print(line[0] + " " + line[1] + " " + line[2])
    elif int(line[2]) < int(line[1]):
        if int(line[0]) <= int(line[2]):
            print(line[0] + " " + line[2] + " " + line[1])
        else:
            print(line[2] + " " + line[0] + " " + line[1])

elif int(line[1]) < int(line[0]):
    if int(line[0]) <= int(line[2]):
        print(line[1] + " " + line[0] + " " + line[2])
    else:
        if int(line[2]) <= int(line[1]):
            print(line[2] + " " + line[1] + " " + line[0])
        else:
            print(line[1] + " " + line[2] + " " + line[0])
Buggy python submission (verdict: Runtime Error):
s = input()
h = s//60
s = s-h*60
m = s//60
s = s-m*60
print(h,':',m,':',s)

Fixed submission:
# -*- coding:utf-8 -*-
sec = int(input())
 
minute = sec//60
sec = sec%60
 
hour = minute//60
minute = minute%60
 
print(':'.join(map(str,[hour,minute,sec])))
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int,raw_input().split(" ")
print a,b,c:("No","Yes")[a<b<c]

Fixed submission:
a,b,c=map(int,raw_input().split())
print ("No","Yes")[a<b<c]
Buggy python submission (verdict: Runtime Error):
L = map(int, raw_input().split())
L.sort()
print " ".join(L)

Fixed submission:
L = map(int, raw_input().split())
L.sort()
print " ".join(map(str, L))
Buggy python submission (verdict: Runtime Error):
import sys
num = sys.stdin.readline()
print(num**num)

Fixed submission:
num = int(input())
print(num**3)

Buggy python submission (verdict: Runtime Error):
import sys
num = sys.stdin.readline()
print(num**3)

Fixed submission:
num = int(input())
print(num**3)

Buggy python submission (verdict: Runtime Error):
num = input()
print(num**3)

Fixed submission:
num = int(input())
print(num**3)

Buggy python submission (verdict: Runtime Error):
num = input()
print(num*num*num)

Fixed submission:
num = int(input())
print(num**3)
Buggy python submission (verdict: Runtime Error):
ary = input().split(" ")
print(ary(0)*ary(1))

Fixed submission:
x, y = input().split()

a = int(x) * int(y)
b = int(x)*2 + int(y)*2
print("{} {}".format(a, b))

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

Fixed submission:
x, y = input().split()

a = int(x) * int(y)
b = int(x)*2 + int(y)*2
print("{} {}".format(a, b))

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

Fixed submission:
x, y = input().split()

a = int(x) * int(y)
b = int(x)*2 + int(y)*2
print("{} {}".format(a, b))

Buggy python submission (verdict: Runtime Error):
x, y = input().split()

a = x * y
b = x**2 + y**2
print("{} {}".format(a, b))

Fixed submission:
x, y = input().split()

a = int(x) * int(y)
b = int(x)*2 + int(y)*2
print("{} {}".format(a, b))

Buggy python submission (verdict: Runtime Error):
x, y = int(input().split())

a = x * y
b = x**2 + y**2
print("{} {}".format(a, b))

Fixed submission:
x, y = input().split()

a = int(x) * int(y)
b = int(x)*2 + int(y)*2
print("{} {}".format(a, b))
Buggy python submission (verdict: Runtime Error):
import time

sec = int(intput())

print((sec - day * 86400).strftime("H:M:S"))

Fixed submission:
sec = int(input())
h = int(sec / 3600)
m = int((sec - 3600 * h) / 60)
s = sec - 3600 * h - 60 * m
print(str(h) + ":" + str(m) + ":" + str(s))

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

sec = int(intput())

print((sec - day * 86400).strftime("%H:%M:%S"))

Fixed submission:
sec = int(input())
h = int(sec / 3600)
m = int((sec - 3600 * h) / 60)
s = sec - 3600 * h - 60 * m
print(str(h) + ":" + str(m) + ":" + str(s))

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

sec = int(intput())

print((Time.parse("1/1") + (sec - day * 86400)).strftime("%H:%M:%S:"))

Fixed submission:
sec = int(input())
h = int(sec / 3600)
m = int((sec - 3600 * h) / 60)
s = sec - 3600 * h - 60 * m
print(str(h) + ":" + str(m) + ":" + str(s))
Buggy python submission (verdict: Runtime Error):
a, b = int(input().sprit(" "))

if a > b
    print("{} > {}".format(a, b))
elif a < b
    print("{} < {}".format(a, b))
   

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

if a > b:
  print("a > b")
elif a < b:
  print("a < b")
elif a == b:
  print("a == b")

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

if a > b
  print("{} > {}".format(a, b))
elif a < b
  print("{} < {}".format(a, b))
   

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

if a > b:
  print("a > b")
elif a < b:
  print("a < b")
elif a == b:
  print("a == b")

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

if a > b
  print("{} > {}".format(a, b))
elif a < b
  print("{} < {}".format(a, b))
elif a eq b
  print("{} == {}".format(a, b))
   

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

if a > b:
  print("a > b")
elif a < b:
  print("a < b")
elif a == b:
  print("a == b")

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

if a > b
  print("{} > {}".format(a, b))
elif a < b
  print("{} < {}".format(a, b))
elif a == b
  print("{} == {}".format(a, b))
   

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

if a > b:
  print("a > b")
elif a < b:
  print("a < b")
elif a == b:
  print("a == b")

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

print(a)
print(b)

if a > b
  print("{} > {}".format(a, b))
elif a < b
  print("{} < {}".format(a, b))
elif a == b
  print("{} == {}".format(a, b))
   

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

if a > b:
  print("a > b")
elif a < b:
  print("a < b")
elif a == b:
  print("a == b")

Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().split())
if a > b
  print("{} > {}".format(a, b))
elif a < b
  print("{} < {}".format(a, b))
elif a == b
  print("{} == {}".format(a, b))
   

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

if a > b:
  print("a > b")
elif a < b:
  print("a < b")
elif a == b:
  print("a == b")
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, input().split())

if a < b amd b < c:
  print("Yes")
else:
  print("No")

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

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

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

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

sorted(d.items(), key=lambda x: x[1])

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

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

sorted(d.items(), key=lambda x: x[1])

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

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

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

Buggy python submission (verdict: Runtime Error):
ary = input().split().sort()

print(ary[0])

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

Buggy python submission (verdict: Runtime Error):
ary = input().split().sort()

print(ary(0))

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

Buggy python submission (verdict: Runtime Error):
ary = list(map(input().split())).sort()

print(ary[0])

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

Buggy python submission (verdict: Runtime Error):
ary = list(map(int, input().split())).sort()

print(ary[0])

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

Buggy python submission (verdict: Runtime Error):
d = map(int, input().split())
d.sort()
print(d[0])

Fixed submission:
ary=list(map(int, input().split()))
ary.sort()
print("{} {} {}".format(ary[0], ary[1], ary[2]))
Buggy python submission (verdict: Runtime Error):
W, H, w, y, r = map(int, input().split())

if x -r < 0 or x + r > W:
    print "No"

Fixed submission:
w, h, x, y, r = map(int, input().split())

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

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

if x -r < 0 or x + r > W:
    print("No")

Fixed submission:
w, h, x, y, r = map(int, input().split())

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

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

if (x -r) < 0 or (x + r) > W:
    print("No")

Fixed submission:
w, h, x, y, r = map(int, input().split())

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

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

if (x -r) < 0 or (x + r) > W:
    print("No")
elif (x- r) >= 0 and (x + r) <= W:
    print("Yes")

Fixed submission:
w, h, x, y, r = map(int, input().split())

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

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

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

Fixed submission:
w, h, x, y, r = map(int, input().split())

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

Buggy python submission (verdict: Runtime Error):
w, h, w, y, r = map(int, input().split())

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

Fixed submission:
w, h, x, y, r = map(int, input().split())

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

Buggy python submission (verdict: Runtime Error):
w, h, w, y, r = map(int, input().split())

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

Fixed submission:
w, h, x, y, r = map(int, input().split())

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

Buggy python submission (verdict: Runtime Error):
w, h, x, w, y, r = map(int, input().split())

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

Fixed submission:
w, h, x, y, r = map(int, input().split())

if x + r <= w and y + r >= 0 and x - r >= 0 and y + r <= h:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
num = 0
while true:
    x = input()
    num += 1
    if x == '0':
        break
    print("Case {}: {}".format(num, x))

Fixed submission:
import sys
num = 0
while(True):
    x = int(sys.stdin.readline())
    num += 1
    if x == 0:
        break
    print("Case %d: %d" % (num, x))

Buggy python submission (verdict: Runtime Error):
num = 0
while true:
    x = input()
    num += 1
    if x == '0':
        break
    print("Case %d: %s".% num, x)

Fixed submission:
import sys
num = 0
while(True):
    x = int(sys.stdin.readline())
    num += 1
    if x == 0:
        break
    print("Case %d: %d" % (num, x))

Buggy python submission (verdict: Runtime Error):
num = 0
while(true):
    x = input()
    num += 1
    if x == '0':
        break
    print("Case %d: %s".% num, x)

Fixed submission:
import sys
num = 0
while(True):
    x = int(sys.stdin.readline())
    num += 1
    if x == 0:
        break
    print("Case %d: %d" % (num, x))

Buggy python submission (verdict: Runtime Error):
num = 0
while(true):
    x = sys.stdin.readline()
    num += 1
    if x == '0':
        break
    print("Case %d: %s".% num, x)

Fixed submission:
import sys
num = 0
while(True):
    x = int(sys.stdin.readline())
    num += 1
    if x == 0:
        break
    print("Case %d: %d" % (num, x))
Buggy python submission (verdict: Runtime Error):
import sys
while(True):
    x, y = map(int(sys.stdin.readline()))
    if x == 0 and y == 0:
        break
    if x < y:
        print("%d %d" % (x, y))
    else:
        print("%d %d" % (y, x))

Fixed submission:
import sys
while(True):
    x, y =  map(lambda x: (int, int)[x.isdigit()](x) ,sys.stdin.readline().split(None, 1))
    if x == 0 and y == 0:
        break
    if x < y:
        print("%d %d" % (x, y))
    else:
        print("%d %d" % (y, x))
Buggy python submission (verdict: Runtime Error):
a = int(input())
import math
r = a * a * math.pi
r2 = a * 2 * math.pi

print("%.10f %.10f" % (r, r))

Fixed submission:
import math

a = float(input())

r = a * a * math.pi
r2 = a * 2 * math.pi

print("%.10f %.10f" % (r, r2))

Buggy python submission (verdict: Runtime Error):
a = int(input())
r = a * a * 3,14
r2 = a * 2 * 3.14

print("%.10f %.10f" % (r, r))

Fixed submission:
import math

a = float(input())

r = a * a * math.pi
r2 = a * 2 * math.pi

print("%.10f %.10f" % (r, r2))

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

r = a * a * 3,14
r2 = a * 2 * 3.14

print("%.10f %.10f" % (r, r2))

Fixed submission:
import math

a = float(input())

r = a * a * math.pi
r2 = a * 2 * math.pi

print("%.10f %.10f" % (r, r2))

Buggy python submission (verdict: Runtime Error):
a = int(input())
import math
r = a * a * math.pi
r2 = a * 2 * math.pi

print("%.10f %.10f" % (r, r2))

Fixed submission:
import math

a = float(input())

r = a * a * math.pi
r2 = a * 2 * math.pi

print("%.10f %.10f" % (r, r2))
Buggy python submission (verdict: Runtime Error):
while true:
  a, b = map(int, input().split())
  if a == 0 and b == 0:
      break
  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, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    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):
x = input()
print(x*x*x)

Fixed submission:
x = input()
x = int(x)
print("%d" % (x*x*x))
Buggy python submission (verdict: Runtime Error):
x = input()
x = x.split("\n")
y = x[1].split(" ")
y = [int(z) for z in y]
cmax = ???1000000
cmin = 1000000
csum = 0
for z in y:
    if cmax < z:
        cmax = z
    if cmin > z:
        cmin = z
    csum += z
print("%d %d %d" % (cmin, cmax, csum))

Fixed submission:
x = input()
x = input()
x = x.split(" ")
x = [int(z) for z in x]
cmax = -1000000
cmin = 1000000
csum = 0
for z in x:
    if cmax < z:
        cmax = z
    if cmin > z:
        cmin = z
    csum += z
print("%d %d %d" % (cmin, cmax, csum))

Buggy python submission (verdict: Runtime Error):
x = input()
x = x.split()
x = [int(z) for z in x]
#y = x[1].split(" ")
#y = [int(z) for z in y]
cmax = ???1000000
cmin = 1000000
csum = 0
for z in x:
    if cmax < z:
        cmax = z
    if cmin > z:
        cmin = z
    csum += z
print("%d %d %d" % (cmin, cmax, csum))

Fixed submission:
x = input()
x = input()
x = x.split(" ")
x = [int(z) for z in x]
cmax = -1000000
cmin = 1000000
csum = 0
for z in x:
    if cmax < z:
        cmax = z
    if cmin > z:
        cmin = z
    csum += z
print("%d %d %d" % (cmin, cmax, csum))

Buggy python submission (verdict: Runtime Error):
x = input()
x = x.split(" ")
x = [int(z) for z in x]
#y = x[1].split(" ")
#y = [int(z) for z in y]
cmax = ???1000000
cmin = 1000000
csum = 0
for z in x:
    if cmax < z:
        cmax = z
    if cmin > z:
        cmin = z
    csum += z
print("%d %d %d" % (cmin, cmax, csum))

Fixed submission:
x = input()
x = input()
x = x.split(" ")
x = [int(z) for z in x]
cmax = -1000000
cmin = 1000000
csum = 0
for z in x:
    if cmax < z:
        cmax = z
    if cmin > z:
        cmin = z
    csum += z
print("%d %d %d" % (cmin, cmax, csum))
Buggy python submission (verdict: Runtime Error):
while True:
    x = [int(z) for z in input().split(" ")]
    for h in range(0,x[0]):
        for w in range(0,x[1]):
            print("#", end="")
        print("\n", end="")
    print("")

Fixed submission:
while True:
    x = [int(z) for z in input().split(" ")]
    if x[0] == 0 and x[1] == 0: break
    for h in range(0,x[0]):
        for w in range(0,x[1]):
            print("#", end="")
        print("\n", end="")
    print("")
Buggy python submission (verdict: Runtime Error):
s = range(1,14)
h = range(1,14)
c = range(1,14)
d = range(1,14)

n = int(input())
while n > 0:
    x = input().split(' ')
    if x[0] == 'S':
        s[x[1]-1] = 0
    elif x[0] == 'H':
        h[x[1]-1] = 0
    elif x[0] == 'C':
        c[x[1]-1] = 0
    elif x[0] == 'D':
        d[x[1]-1] = 0
    n -= 1

for t in s:
    if t != 0: print("S %d" % t)
for t in h:
    if t != 0: print("H %d" % t)
for t in c:
    if t != 0: print("C %d" % t)
for t in d:
    if t != 0: print("D %d" % t)

Fixed submission:
s = list(range(1,14))
h = list(range(1,14))
c = list(range(1,14))
d = list(range(1,14))

n = int(input())
while n > 0:
    x = input().split(' ')
    x[1] = int(x[1])
    if x[0] == 'S':
        s[x[1]-1] = 0
    elif x[0] == 'H':
        h[x[1]-1] = 0
    elif x[0] == 'C':
        c[x[1]-1] = 0
    elif x[0] == 'D':
        d[x[1]-1] = 0
    n -= 1

for t in s:
    if t != 0: print("S %d" % t)
for t in h:
    if t != 0: print("H %d" % t)
for t in c:
    if t != 0: print("C %d" % t)
for t in d:
    if t != 0: print("D %d" % t)
Buggy python submission (verdict: Runtime Error):
n, m = [int (x) for x in input().split(' ')]
a = [[0 for i in range(n)] for j in range(m)]
b = [0 for i in range(m)]
c = [0 for i in range(n)]
for s in range(0,n):
    a[s] = [int (x) for x in input().split(' ')]
for s in range(0,m):
    b[s] = int(input())
for s in range(0,n):
    for t in range(0,m):
        c[s] += a[s][t] * b[t]
for t in range(0,n):
    print("%d" % c[t])

Fixed submission:
n, m = [int (x) for x in input().split(' ')]
a = [[0 for i in range(m)] for j in range(n)]
b = [0 for i in range(m)]
c = [0 for i in range(n)]
for s in range(0,n):
    a[s] = [int (x) for x in input().split(' ')]
for s in range(0,m):
    b[s] = int(input())
for s in range(0,n):
    for t in range(0,m):
        c[s] += a[s][t] * b[t]
for t in range(0,n):
    print("%d" % c[t])
Buggy python submission (verdict: Runtime Error):
w = input()
count = 0
while True:
    t = input().lower
    if t == "END_OF_TEXT": break
    count += t.count(w)
print(int(count))

Fixed submission:
w = input()
count = 0
while True:
    t = input()
    if t == "END_OF_TEXT": break
    for c in t.lower().split(' '):
        if c == w: count += 1
print(int(count))
Buggy python submission (verdict: Runtime Error):
string = input()
q = int(input())
for c in range(0,q):
    instruction = input().split(' ')
    if instruction[0] == 'print':
        print(string[int(instruction[1]):int(instruction[2]) + 1])
    elif instruction[0] == 'reverse':
        string = string.replace(string[int(instruction[1]):int(instruction[2])+1], string[int(instruction[1]):int(instruction[2])+1][::-1], 1)
    elif instruction[0] == 'replace':
        if instruction[1] == instruction[2]:
            string[instruction[1]] = instruction[3]
        else:
            string = string.replace(string[int(instruction[1]):int(instruction[2])+1], instruction[3], 1)

Fixed submission:
string = input()
q = int(input())
for c in range(0,q):
    instruction = input().split(' ')
    if instruction[0] == 'print':
        print(string[int(instruction[1]):int(instruction[2]) + 1])
    elif instruction[0] == 'reverse':
        string = string.replace(string[int(instruction[1]):int(instruction[2])+1], string[int(instruction[1]):int(instruction[2])+1][::-1], 1)
    elif instruction[0] == 'replace':
        string = string[:int(instruction[1])] + instruction[3] + string[int(instruction[2])+1:]

Buggy python submission (verdict: Runtime Error):
string = input()
q = int(input())
for c in range(0,q):
    instruction = input().split(' ')
    if instruction[0] == 'print':
        print(string[int(instruction[1]):int(instruction[2]) + 1])
    elif instruction[0] == 'reverse':
        string = string.replace(string[int(instruction[1]):int(instruction[2])+1], string[int(instruction[1]):int(instruction[2])+1][::-1], 1)
    elif instruction[0] == 'replace':
        if instruction[1] == instruction[2]:
            string[int(instruction[1])] = instruction[3]
        else:
            string = string.replace(string[int(instruction[1]):int(instruction[2])+1], instruction[3], 1)

Fixed submission:
string = input()
q = int(input())
for c in range(0,q):
    instruction = input().split(' ')
    if instruction[0] == 'print':
        print(string[int(instruction[1]):int(instruction[2]) + 1])
    elif instruction[0] == 'reverse':
        string = string.replace(string[int(instruction[1]):int(instruction[2])+1], string[int(instruction[1]):int(instruction[2])+1][::-1], 1)
    elif instruction[0] == 'replace':
        string = string[:int(instruction[1])] + instruction[3] + string[int(instruction[2])+1:]
Buggy python submission (verdict: Runtime Error):
print("{0}{1}".format(*(lambda a:lambda b:[a*b,a+b])(int(input()))(int(input()))))

Fixed submission:
(lambda l:print("{0} {1}".format(l[0]*l[1],2*(l[0]+l[1]))))([int(e)for e in input().split()])
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, raw_input(' '))

l = []
l.append(a)
l.append(b)
l.append(c)

l = sorted(l)
print str(l[0]) + ' ' + str(l[1]) + ' ' + str(l[2])

Fixed submission:
l = map(int, raw_input().split(' '))
for i in xrange(len(l)):
  print sorted(l)[i],
Buggy python submission (verdict: Runtime Error):
import math
r = int(raw_input())
print r*r*math.pi, 2*r*math.pi

Fixed submission:
import math
r = float(raw_input())
print "{0:.10f} {1:.10f}".format(r*r*math.pi, 2*r*math.pi)

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

Fixed submission:
import math
r = float(raw_input())
print "{0:.10f} {1:.10f}".format(r*r*math.pi, 2*r*math.pi)