Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
#???????????´??° x ?????????????????§???x ?????????????¨????????????????????????????????????°?????????????????????????????????
raw_input (x)
print(x*3)

Fixed submission:

x = raw_input()
print(int(x)**3)

Buggy python submission (verdict: Runtime Error):
#???????????´??° x ?????????????????§???x ?????????????¨????????????????????????????????????°?????????????????????????????????
x = raw_input()
print(int(x)**3)

Fixed submission:

x = raw_input()
print(int(x)**3)

Buggy python submission (verdict: Runtime Error):
print(x**3)

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

Buggy python submission (verdict: Runtime Error):
x=raw_input()
print x*x*x

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

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

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

Buggy python submission (verdict: Runtime Error):
print(x**3)

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

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

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

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

Buggy python submission (verdict: Runtime Error):
a=0
b=0
list = input()
a = list[0]
b = list[2]
print(a*b,2*(a+b))

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

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

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

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

Fixed submission:
ab = input()
num_ab = ab.split()
a = int(num_ab[0])
b = int(num_ab[1])
print(a*b,2*(a+b))
Buggy python submission (verdict: Runtime Error):
ab = input()
num_ab = ab.split()
if int(num_ab[0]) < int(num_ab[1]):
    print('a < b')
elif int(num_ab[0]) > int(num_ab[1]):
    print('a > b')
else:
    print('a == b')

Fixed submission:
ab = input()
num_ab = ab.split()
a = int(num_ab[0])
b = int(num_ab[1])
if a < b:
    print('a < b')
elif a > b:
    print('a > b')
else:
    print('a == b')

Buggy python submission (verdict: Runtime Error):
ab = 0
ab = input()
num_ab = ab.split()
if int(num_ab[0]) < int(num_ab[1]):
    print('a < b')
elif int(num_ab[0]) > int(num_ab[1]):
    print('a > b')
else:
    print('a == b')

Fixed submission:
ab = input()
num_ab = ab.split()
a = int(num_ab[0])
b = int(num_ab[1])
if a < b:
    print('a < b')
elif a > b:
    print('a > b')
else:
    print('a == b')
Buggy python submission (verdict: Runtime Error):
a = 1
x = input()
for i in x:
    if i ==0:
        continue
    print('Case',a,':',x)
    a += 1

Fixed submission:
count = 1
while True:
    x = input()
    if int(x) == 0:
        break
    else:
        print('Case ' + str(count) + ': ' + str(x))
        count += 1
Buggy python submission (verdict: Runtime Error):
r = int(input())
import math
print("%.6f"%(math.pi * r * r,math.pi * 2 * r))

Fixed submission:
r = float(input())
import math
print("%.6f"%(math.pi * r * r),"%.6f"%(math.pi * 2 * r))
Buggy python submission (verdict: Runtime Error):
input_str = row_input

translate_num = int("input_str")**

print("translate_num\n")

Fixed submission:
input_str = input()

translate_num = (int(input_str))**3

print(translate_num)

Buggy python submission (verdict: Runtime Error):
input_str = row_input()

translate_num = int("input_str")**

print("translate_num\n")

Fixed submission:
input_str = input()

translate_num = (int(input_str))**3

print(translate_num)

Buggy python submission (verdict: Runtime Error):
input_str = row_input()

translate_num = (int("input_str"))**

print("translate_num\n")

Fixed submission:
input_str = input()

translate_num = (int(input_str))**3

print(translate_num)

Buggy python submission (verdict: Runtime Error):
input_str = raw_input()

translate_num = (int("input_str"))**

print("translate_num\n")

Fixed submission:
input_str = input()

translate_num = (int(input_str))**3

print(translate_num)

Buggy python submission (verdict: Runtime Error):
input_str = raw_input()

translate_num = (int("input_str"))**2

print("translate_num\n")

Fixed submission:
input_str = input()

translate_num = (int(input_str))**3

print(translate_num)

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

translate_num = (int("input_str"))**2

print("translate_num\n")

Fixed submission:
input_str = input()

translate_num = (int(input_str))**3

print(translate_num)

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

translate_num = (int(input_str))**2

print(translate_num + "\n")

Fixed submission:
input_str = input()

translate_num = (int(input_str))**3

print(translate_num)

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

translate_num = (int(input_str))**2

print(translate_num\n)

Fixed submission:
input_str = input()

translate_num = (int(input_str))**3

print(translate_num)
Buggy python submission (verdict: Runtime Error):
input_str = input()

split_list = input_str.split()

print((int(split_list[0]) * int(split_list[1]),)

print(" ",)

print((int(split_list[0]) * 2 + int(split_list[1]) * 2))
 

Fixed submission:
input_str = input()

split_list = input_str.split()

print(int(split_list[0]) * int(split_list[1]), int(split_list[0]) * 2 + int(split_list[1]) * 2)

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

split_list = input_str.split()

print((int(split_list[0]) * int(split_list[1]),)

print((int(split_list[0]) * 2 + int(split_list[1]) * 2))
 

Fixed submission:
input_str = input()

split_list = input_str.split()

print(int(split_list[0]) * int(split_list[1]), int(split_list[0]) * 2 + int(split_list[1]) * 2)

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

split_list = input_str.split()

print((int(split_list[0]) * int(split_list[1]),(int(split_list[0]) * 2 + int(split_list[1]) * 2))
 

Fixed submission:
input_str = input()

split_list = input_str.split()

print(int(split_list[0]) * int(split_list[1]), int(split_list[0]) * 2 + int(split_list[1]) * 2)
Buggy python submission (verdict: Runtime Error):
input_str = input()

input_tuple = divmod(int(input_str), 3600)

output_str = input_tuple[0] + ":"

input_tuple = divmod(int(input_str), 60)

output_str += input_tuple[0] + ":" + input_tuple[1]

print(output_str)

Fixed submission:
input_str = input()

input_tuple = divmod(int(input_str), 3600)

output_str = str(input_tuple[0]) + ":"

input_tuple = divmod(input_tuple[1], 60)

output_str += str(input_tuple[0]) + ":" + str(input_tuple[1])

print(output_str)

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

input_tuple = divmod(int(input_str), 3600)

output_str = input_tuple[0] + ":"

input_tuple = divmod(int(input_str), 60)

output_str += input_tuple[0] + ":" + input_tuple[1]

print(output_str)

Fixed submission:
input_str = input()

input_tuple = divmod(int(input_str), 3600)

output_str = str(input_tuple[0]) + ":"

input_tuple = divmod(input_tuple[1], 60)

output_str += str(input_tuple[0]) + ":" + str(input_tuple[1])

print(output_str)
Buggy python submission (verdict: Runtime Error):
set = list(map(int,input().split()))
index = 0
next = set[index]
while next:
	print("Case "+str(index)+": "+str(set[index]))
	index += 1
	next = set[index]

Fixed submission:
import sys
cnt = 1
while 1:
	x = sys.stdin.readline().strip()
	if x == '0':
		break;
	print("Case %d: %s"%(cnt,x))
	cnt+=1

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

Fixed submission:
import sys
cnt = 1
while 1:
	x = sys.stdin.readline().strip()
	if x == '0':
		break;
	print("Case %d: %s"%(cnt,x))
	cnt+=1

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

Fixed submission:
import sys
cnt = 1
while 1:
	x = sys.stdin.readline().strip()
	if x == '0':
		break;
	print("Case %d: %s"%(cnt,x))
	cnt+=1
Buggy python submission (verdict: Runtime Error):
x ** 3

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

Buggy python submission (verdict: Runtime Error):
x = input()
y = x ** 3
print int(y)

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

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

y = x**3

print int(y)

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

Buggy python submission (verdict: Runtime Error):
y = x **3
print("y")

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

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

y = x**3

print (int(y))

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

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

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


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

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


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

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


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

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


Fixed submission:
data = input().split()
a = data[0]
b = data[1]
print(int(a) * int(b), 2 * (int(a) + int(b)))
Buggy python submission (verdict: Runtime Error):
 S = input()
 h = S / 3600
 m = (S % 3600) / 60
 s = (S % 3600) % 60)
 print(str(int(h)) + ':' + str(int(m)) + ':' + str(s))


Fixed submission:
S = input()
i = int(S)
h = i / 3600
m = (i % 3600) / 60
s = (i % 3600) % 60
print(str(int(h)) + ':' + str(int(m)) + ':' + str(s))
Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().split())

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

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):
a, b = map(int, input().split())

if a < b:
    print("{a} < {b}", format(a=a, b=b))
if a > b:
    print("{a} > {b}", format(a=a, b=b))
else:
    print("{a} == {b}", format(a=a, b=b))

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):

W, H, x, y, r = map(int, input().split())

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

Fixed submission:

W, H, x, y, r = map(int, input().split())


if x - r >= 0 and x + r <= W and y - r >= 0 and y + r <= H:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
(a, b)  = list(map(int, input().split())
print (a*b, 2(a+b))

Fixed submission:
a, b =list(map(int, input().split()))
print (a*b, 2*(a+b))
Buggy python submission (verdict: Runtime Error):
S = int(input())
h = S//3600
m, s = divmod(S%3600, 60)
print(f"{h}:{m}:{s}")

Fixed submission:
S = int(input())
h = S//3600
m, s = divmod(S%3600, 60)
print("%d:%d:%d" %(h, m, s))
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
if a < b and 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):
print(x*x*x)

Fixed submission:
x = int(input())
print(x*x*x)

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

Fixed submission:
x = int(input())
print(x*x*x)
Buggy python submission (verdict: Runtime Error):
input = list(map(int, input().split(' '))
a = input[0]
b = input[1]
x = a * b
y = (a + b) * 2
print("{} {}".format(a, b))

Fixed submission:
input = list(map(lambda n: int(n), input().split(' ')))
print("{} {}".format(input[0] * input[1], (input[0] + input[1]) * 2))

Buggy python submission (verdict: Runtime Error):
input = list(map(lambda n: int(n), input().split(' '))
a = input[0]
b = input[1]
x = a * b
y = (a + b) * 2
print("{} {}".format(a, b))

Fixed submission:
input = list(map(lambda n: int(n), input().split(' ')))
print("{} {}".format(input[0] * input[1], (input[0] + input[1]) * 2))
Buggy python submission (verdict: Runtime Error):
n = raw_input()
print(n ** 3)

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

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

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

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

Fixed submission:
x = list(map(int, input().split()))
x.sort()
print(x[0], x[1], x[2])
Buggy python submission (verdict: Runtime Error):
W, H, x, y, r = map(int, input().split())
if x - r >= 0 and x + r =< W:
    if y - r >= 0 and y + r <= H:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Fixed submission:
W, H, x, y, r = map(int, input().split())
if x - r >= 0 and x + r <= W:
    if y - r >= 0 and y + r <= H:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
W, H, x, y, r = map(int, input().split(" "))
if x - r >= 0 and x + r =< W:
    if y - r >= 0 and y + r <= H:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Fixed submission:
W, H, x, y, r = map(int, input().split())
if x - r >= 0 and x + r <= W:
    if y - r >= 0 and y + r <= H:
        print("Yes")
    else:
        print("No")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
import sys
while True:
    x = sys.stdin.readline.strip()
    if x == "0":
        break
    print("Case %d: %s"%(i, x))
    i += 1

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

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

Fixed submission:
import sys
i = 1
while True:
    x = sys.stdin.readline().strip()
    if x == "0":
        break
    print("Case %d: %s"%(i, x))
    i += 1
Buggy python submission (verdict: Runtime Error):
import sys

a = int(sys.argv[1])
print("{}".format(a**3))

Fixed submission:
x = int(input())
print(x**3)
Buggy python submission (verdict: Runtime Error):
inps = input().split()
if len(inp) >= 2:
    a = int(inps[0])
    b = int(inps[1])
    if a > b:
        print("a > b")
    elif a < b:
        print("a < b")
    else:
        print("a == b")
else:
    print("Input illegal.")

Fixed submission:
inps = input().split()
if len(inps) >= 2:
    a = int(inps[0])
    b = int(inps[1])
    if a > b:
        print("a > b")
    elif a < b:
        print("a < b")
    else:
        print("a == b")
else:
    print("Input illegal.")
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
print("{} {}".format(math.pi * r ** 2, 2 * math.pi * r))

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

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

print('{:.5f}'.format(circle_squre),'{:.5f}'.format(circle_length))

Fixed submission:
from math import pi
r = float(input())
circle_squre = r * r * pi
circle_length = (r*2) * pi

print('{}'.format(circle_squre),'{}'.format(circle_length))

Buggy python submission (verdict: Runtime Error):

r = int(input())
circle_squre = r * r * 3.141592
circle_length = (r*2) * 3.141592

print('{:.5f}'.format(circle_squre),'{:.5f}'.format(circle_length))

Fixed submission:
from math import pi
r = float(input())
circle_squre = r * r * pi
circle_length = (r*2) * pi

print('{}'.format(circle_squre),'{}'.format(circle_length))
Buggy python submission (verdict: Runtime Error):
a, b = input().split(' ')
print('{} {}'.format(a*b, 2(a+b)))

Fixed submission:
a, b = map(int, input().split(' '))
print('{} {}'.format(a*b, 2*(a+b)))

Buggy python submission (verdict: Runtime Error):
x, y = map(int, input().split(' '))
print('{} {}'.format(a*b, 2(a+b)))

Fixed submission:
a, b = map(int, input().split(' '))
print('{} {}'.format(a*b, 2*(a+b)))

Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().split(' '))
print('{} {}'.format(a*b, 2(a+b)))

Fixed submission:
a, b = map(int, input().split(' '))
print('{} {}'.format(a*b, 2*(a+b)))
Buggy python submission (verdict: Runtime Error):
lst = list(map(int, input().split()))
for i in lst.sort():
  print('{}'.format(i), end='')

Fixed submission:
lst = list(map(int, input().split()))
for i, data in enumerate(sorted(lst)):
    if not i == len(lst)-1:
        print('{} '.format(data), end='')
    else:
        print('{}'.format(data))

Buggy python submission (verdict: Runtime Error):
lst = list(map(int, input().split(' ')))
for i in sorted(lst):
  print('{} '.format(i), end='')

Fixed submission:
lst = list(map(int, input().split()))
for i, data in enumerate(sorted(lst)):
    if not i == len(lst)-1:
        print('{} '.format(data), end='')
    else:
        print('{}'.format(data))
Buggy python submission (verdict: Runtime Error):
a,b = int(input().split())
S = a*b
L = 2*(a+b)
print(x,y)

Fixed submission:
a,b = map(int,input().split())
S = a*b
L = 2*(a+b)
print(S,end=" ")
print(L)

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

Fixed submission:
a,b = map(int,input().split())
S = a*b
L = 2*(a+b)
print(S,end=" ")
print(L)

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

Fixed submission:
a,b = map(int,input().split())
S = a*b
L = 2*(a+b)
print(S,end=" ")
print(L)

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

Fixed submission:
a,b = map(int,input().split())
S = a*b
L = 2*(a+b)
print(S,end=" ")
print(L)

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

Fixed submission:
a,b = map(int,input().split())
S = a*b
L = 2*(a+b)
print(S,end=" ")
print(L)
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int,input().split())

if(a< b && 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):
x = input()
print(x**3)

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

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

Fixed submission:
x = int(input())
print(x**3)
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):
5 4 2 4 1

Fixed submission:
W,H,x,y,r=[int(i) for i in input().split()]
if x < 0 or y < 0:
	print("No")
elif (x+r) > W:
	print("No")
elif (y+r) > H:
	print("No")
else:
	print("Yes")
Buggy python submission (verdict: Runtime Error):
r = int(input())
pi = 3.14159265359
v = r*r*pi
w = r*pi
print("{0:.10f} {1:.10f}".format(v,w))

Fixed submission:
r = float(input())
pi = 3.1415926535897932384626433
v = r*r*pi
w = 2*r*pi
print("{0:.6f} {1:.6f}".format(v,w))

Buggy python submission (verdict: Runtime Error):
r = int(input())
pi = 3.14159265359
v = r*r*pi
w = r*pi
print("{0:.10f} {1:.10f}".format(v,w))

Fixed submission:
r = float(input())
pi = 3.1415926535897932384626433
v = r*r*pi
w = 2*r*pi
print("{0:.6f} {1:.6f}".format(v,w))
Buggy python submission (verdict: Runtime Error):
r,c = [int(i) for i in input().split()]
a = [[0 for i in range(r+2)] for j in range(c)]
for i in range(r):
	a[i] = [int(j) for j in input().split()]
for i in range(r):
	rowSum = 0
	for j in range(c):
		rowSum += a[i][j]
	a[i].append(rowSum)
for i in range(c+1):
	columnSum = 0
	for j in range(r):
		columnSum += a[j][i]
	a[r][i] = columnSum
for i in range(r+1):
	for j in range(c):
		print(a[i][j],end=' ')
	print(a[i][c])

Fixed submission:
r,c = [int(i) for i in input().split()]
a = [[0 for i in range(c+1)] for j in range(r+1)]
for i in range(r):
	a[i] = [int(j) for j in input().split()]
for i in range(r):
	rowSum = 0
	for j in range(c):
		rowSum += a[i][j]
	a[i].append(rowSum)
for i in range(c+1):
	columnSum = 0
	for j in range(r):
		columnSum += a[j][i]
	a[r][i] = columnSum
for i in range(r+1):
	for j in range(c):
		print(a[i][j],end=' ')
	print(a[i][c])
Buggy python submission (verdict: Runtime Error):
x = input()
print(x ** 3)

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

Buggy python submission (verdict: Runtime Error):
x?????? input()
print(x * x* x/n)

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

Buggy python submission (verdict: Runtime Error):
x = input()
print(x*x*x/n)

Fixed submission:
x = input()
print(int(x) **3)
Buggy python submission (verdict: Runtime Error):
a = input()
b = input()

area = int(a) * int(b)
length = 2 * int(a) + 2 * int(b)

print(area length)

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

area = a*b
length = 2 * (a+b)

print(area,end=" ")
print(length)

Buggy python submission (verdict: Runtime Error):
a = input()
b = input()
 
area = int(a) * int(b)
length = 2 * int(a) + 2 * int(b)
 
print(area length)

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

area = a*b
length = 2 * (a+b)

print(area,end=" ")
print(length)

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

area = a * b
length = 2* a + 2 * b

print(area length)

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

area = a*b
length = 2 * (a+b)

print(area,end=" ")
print(length)

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

area = a*b
length = 2 * (a + b)

print(area length)

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

area = a*b
length = 2 * (a+b)

print(area,end=" ")
print(length)

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

area = a * b
length = 2 * (a + b)

print(area,end=" ")
print(length)

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

area = a*b
length = 2 * (a+b)

print(area,end=" ")
print(length)