Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
a = input()
b = input()
print( int(a) * int(b), 2 * ( int(a) + int(b) ) )



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

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



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

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



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

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



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

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



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

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


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



Fixed submission:
r = input()
r = float( r )
print( 3.141592653589 * r ** 2, 2 * 3.141592653589 * r)
Buggy python submission (verdict: Runtime Error):
def triple(n):
    n = n * 3
    return n
    
print(triple(n))


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

Buggy python submission (verdict: Runtime Error):
def triple(n):
    n = n * 3
    return n
    
print(int(triple(x)))


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

Buggy python submission (verdict: Runtime Error):
def triple(n):
    n = n * 3
    return n
    
print(triple(x))


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

Buggy python submission (verdict: Runtime Error):
def triple(n):
    if n >= 1:
        if n <= 100:
            n = n * 3
        return n
        
    
print(triple(x))


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

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



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

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



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

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



Fixed submission:
x=input()
y=int(x)
y=y**3
print(y)
Buggy python submission (verdict: Runtime Error):
S = float(input("Input seconds: "))
S = S % (24 * 3600)
hour = S // 3600
S %= 3600
minutes = time // 60
S %= 60
seconds = S
print("%d:%d:%d" % (hour, minutes, seconds))



Fixed submission:
S = float(input())
S = S % (24 * 3600)
hour = S // 3600
S %= 3600
minutes = S // 60
S %= 60
seconds = S
print("%d:%d:%d" % (hour, minutes, seconds))

Buggy python submission (verdict: Runtime Error):
S = float(input("Input seconds: "))
S = S % (24 * 3600)
hour = S // 3600
S %= 3600
minutes = time // 60
S %= 60
seconds = S
print("%d:%d:%d" % (hour, minutes, seconds))


Fixed submission:
S = float(input())
S = S % (24 * 3600)
hour = S // 3600
S %= 3600
minutes = S // 60
S %= 60
seconds = S
print("%d:%d:%d" % (hour, minutes, seconds))
Buggy python submission (verdict: Runtime Error):
width = float(input('Please Enter the Width of a Rectangle: '))
height = float(input('Please Enter the Height of a Rectangle: '))
# calculate the area of rectangle
Area = width * height

# calculate the Perimeter
Perimeter = 2 * (width + height)

print("\n Area of a Rectangle is: %.2f" %Area)
print(" Perimeter of Rectangle is: %.2f" %Perimeter)


Fixed submission:
def areaRectangle(a, b): 
    return (a * b) 
  
def perimeterRectangle(a, b): 
    return (2 * (a + b)) 
  
a,b = map(int, input().split())
print ( areaRectangle(a, b),perimeterRectangle(a, b))
Buggy python submission (verdict: Runtime Error):
a,b = map(int,input().split())
if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else print("a == 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):
n_cards = int(input())
taro_cards = []
for i in range(n_cards):
    taro_card = input()
    taro_cards.append(taro_card)
full_cards = []
for mark in ['S', 'H', 'C', 'D']:
    for card_number in range(13):
        full_cards.append(mark + " " + str(card_number+1))

missing_cards = []
for card in full_cards:
    if card not in taro_cards:
        missing_cards.append(card)

for missing_card in missing_cards:
    print(missing_card)



Fixed submission:
n_cards = int(input())
taro_cards = []
for i in range(n_cards):
    taro_card = input()
    taro_cards.append(taro_card)
full_cards = []
for mark in ['S', 'H', 'C', 'D']:
    for card_number in range(13):
        full_cards.append(mark + " " + str(card_number+1))

missing_cards = []
for card in full_cards:
    if card not in taro_cards:
        missing_cards.append(card)

for missing_card in missing_cards:
    print(missing_card)
Buggy python submission (verdict: Runtime Error):
numbers = list(map(int, input().split()))

for i in range(len(numbers)-1):
    for j in range(len(numbers)-1-i):
        if(numbers[j] > numbers[j+i]):
            temp = numbers[j]
            numbers[j] = numbers[j+1]
            numbers[j+1] = temp
            
print(f'numbers[0] numbers[1] numbers[2])


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

temp = 0

for i in range(len(list)):
    for j in range(len(list)-1, i, -1):
        if list[j] < list[j-1]:
            temp = list[j]
            list[j] = list[j-1]
            list[j-1] = temp
    
print(list[0], list[1], list[2])
Buggy python submission (verdict: Runtime Error):
import sys,math

def solve():
    a, = map(int,input().split())
    print(a**2*math.pi ,a*2*math.pi)
    
solve()


Fixed submission:
import sys,math

def solve():
    a = float(input())
    print(a**2*math.pi ,a*2*math.pi)
    
solve()
Buggy python submission (verdict: Runtime Error):
import sys,math

def solve():
    while True:
        s = input()
        if s == "0 ? 0":
            break
        else:
            print(int(eval(s)//1))
    
solve()


Fixed submission:
import sys,math

def solve():
    while True:
        s = input()
        if "?" in s:
            break
        else:
            print(int(eval(s)//1))
    
solve()

Buggy python submission (verdict: Runtime Error):
while True:
    table=input().split()
a=int(table[0])
op=table[1]
b=int(table[2])

if op=='?':
    break
elif op=='+':
    print("%d" %(a+b))
elif op=='-':
    print("%d" %(a-b))
elif op=='*':
    print("%d" %(a*b))
elif op=='/':
    print("%d" %(a/b))
    
    


Fixed submission:
while True:
    table=input().split()
    
    a=int(table[0])
    b=table[1]
    c=int(table[2])
    
    if b=='?':
        break
    elif b=='+':    
        print("%d"%(a+c))
    elif b=='-':
        print("%d"%(a-c))
    elif b=='*':
        print("%d"%(a*c))
    elif b=='/':
        print("%d"%(a/c))
Buggy python submission (verdict: Runtime Error):
for i in range(3000):
  a = input().split()
  x = int(a[0])
  y = int(a[1])
  if x == y:
    print(x,y)
  elif x < y:
    print(x,y)
  else:
    print(y,x)



Fixed submission:
for i in range(3000):
  a = input().split()
  x = int(a[0])
  y = int(a[1])
  if x + y == 0:
    break
  elif x < y:
    print(x,y)
  elif y < x:
    print(y,x)
  else:
    print(x,y)
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
s = r * r * math.pi
l = 2 * r * math.pi
print(s,l)


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

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


Fixed submission:
import math
r = float(input())
s = '{:.6f}'.format(r * r * math.pi)
l = '{:.6f}'.format(2 * r * math.pi)
print(s,l)
Buggy python submission (verdict: Runtime Error):
x = input().split()
a = int(x[0])
op = x[1]
b = int(x[2])
for i in I:
  if op == "+":
    A = a + b
    prnit(A)
  elif op == "-":
    B = a - b
    print(B)
  elif op == "*":
    C = a * b
    print(C)
  elif op == "/":
    D = a // b
    print(D)
  elif op == "?":
    break


Fixed submission:
for i in range(10000):
  x = input().split()
  a = int(x[0])
  op = x[1]
  b = int(x[2])
  if op == "+":
    A = a + b
    print(A)
  elif op == "-":
    B = a - b
    print(B)
  elif op == "*":
    C = a * b
    print(C)
  elif op == "/":
    D = a // b
    print(D)
  elif op == "?":
    break
Buggy python submission (verdict: Runtime Error):
for i in range(10000):
  x = input().split()
  h = int(x[0])
  w = int(x[1])
  for i in range(h):
    for i in range(w):
      print("#",end="")
    print() 


Fixed submission:
for i in range(10000):
  x = input().split()
  h = int(x[0])
  w = int(x[1])
  if h ==0 and w == 0:
    break
  for i in range(h):
    for i in range(w):
      print("#",end="")
    print() 
  print()
Buggy python submission (verdict: Runtime Error):
a,b = map (int, input().split)
if(a<b):
    print("a < b")
    else if(a>b):
        print("a > b")
        else if(a == b):
            print("a == 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")
    else a>b:
        print("a > b")
        else a == b:
            print("a == 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")
    elif a>b:
        print("a > b")
        else a == b:
            print("a == 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")
elif a>b:
    print("a > b")
else a == b:
    print("a == 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")
elif a>b:
    print("a > b")
else:
    print("a == 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,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):
a,b,c  = map (int, input().split())
if a < b:
    elif 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):
a = 0
while input() != 0:
    a += 1
    print ("Case {}: {}".format(a. input()))


Fixed submission:
i=1
x = int(input())
while x != 0 :
    print("Case {0}: {1}".format(i, x))
    x = int(input())
    i=i+1

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


Fixed submission:
i=1
x = int(input())
while x != 0 :
    print("Case {0}: {1}".format(i, x))
    x = int(input())
    i=i+1

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


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



Fixed submission:
while True:
    a,b = map(int, input().split())
    if (a,b) == (0,0) :
        break
    elif a > b:
        c = a
        a = b
        b = c
    print("{} {}".format(a,b))

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


Fixed submission:
while True:
    a,b = map(int, input().split())
    if (a,b) == (0,0) :
        break
    elif a > b:
        c = a
        a = b
        b = c
    print("{} {}".format(a,b))

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


Fixed submission:
while True:
    a,b = map(int, input().split())
    if (a,b) == (0,0) :
        break
    elif a > b:
        c = a
        a = b
        b = c
    print("{} {}".format(a,b))
Buggy python submission (verdict: Runtime Error):
import math
a = input()
print('{} {}'.format(math.pi*a*2, math.pi*a*a))


Fixed submission:
import math
a = float(input())
pi = 3.1415926535897
print('{} {}'.format(pi*a*a, pi*a*2))

Buggy python submission (verdict: Runtime Error):
import math
a = input()
pi = 3.1415926535897
print('{} {}'.format(pi*a*2, pi*a*a))


Fixed submission:
import math
a = float(input())
pi = 3.1415926535897
print('{} {}'.format(pi*a*a, pi*a*2))
Buggy python submission (verdict: Runtime Error):
 sec    7404 KB     68 bytes     
?
1
2
3
4
while 1:
    s=input()
    if '?' in s:break
    print(int(eval(s)))


Fixed submission:
while 1:
    s=input()
    if '?' in s:break
    print(int(eval(s)))
Buggy python submission (verdict: Runtime Error):
n = int(input())
ns= int(input.spit())
for i in range(n):
    asum = sum(ns)
    amin = min(ns)
    amax = max(ns)

print(amin, amax, asum)


Fixed submission:
n=int(input())
ns=input().split()
for i in range(len(ns)):
    ns[i]=int(ns[i])
asum=sum(ns)
amin=min(ns)
amax=max(ns)
print(amin,amax,asum)

Buggy python submission (verdict: Runtime Error):
n = int(input())
ns= int(input.spit())
for i in range(n):
    asum = sum(ns)
    amin = min(ns)
    amax = max(ns)

print(amin, amax, asum)


Fixed submission:
n=int(input())
ns=input().split()
for i in range(len(ns)):
    ns[i]=int(ns[i])
asum=sum(ns)
amin=min(ns)
amax=max(ns)
print(amin,amax,asum)

Buggy python submission (verdict: Runtime Error):
n = int(input())
ns= int(input.spit())
for i in range(n):
    ns[i]= int(ns[i])
asum = sum(ns)
amin = min(ns)
amax = max(ns)

print(amin, amax, asum)


Fixed submission:
n=int(input())
ns=input().split()
for i in range(len(ns)):
    ns[i]=int(ns[i])
asum=sum(ns)
amin=min(ns)
amax=max(ns)
print(amin,amax,asum)

Buggy python submission (verdict: Runtime Error):
n = int(input())
ns= int(input().spit())
for i in range(n):
    ns[i]= int(ns[i])
asum = sum(ns)
amin = min(ns)
amax = max(ns)

print(amin, amax, asum))


Fixed submission:
n=int(input())
ns=input().split()
for i in range(len(ns)):
    ns[i]=int(ns[i])
asum=sum(ns)
amin=min(ns)
amax=max(ns)
print(amin,amax,asum)

Buggy python submission (verdict: Runtime Error):
n = int(input())
ns= int(input().spit())
asum = sum(ns)
amin = min(ns)
amax = max(ns)

print(amin, amax, asum)


Fixed submission:
n=int(input())
ns=input().split()
for i in range(len(ns)):
    ns[i]=int(ns[i])
asum=sum(ns)
amin=min(ns)
amax=max(ns)
print(amin,amax,asum)
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):
        for i in range(b):
            print("#", end = "")
        print()


Fixed submission:
while True:
    a,b = map(int, input().split())
    if a ==0 and b == 0:
        break
    for i in range(a):
        for i in range(b):
            print("#", end = "")
        print()
    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):
        for i in range(b):
            print("#", end = "")
        print()



Fixed submission:
while True:
    a,b = map(int, input().split())
    if a ==0 and b == 0:
        break
    for i in range(a):
        for i in range(b):
            print("#", end = "")
        print()
    print()
Buggy python submission (verdict: Time Limit Exceeded):
while True:
    a,b  = 5,10
    if a ==0 and b == 0:
        break
    for i in range(a):
        if i ==0 or i == (a-1):
            print("#", end = "")
            print("."*(b-2), end = "")
            print("#")
        else:
            print("#"*b)
    print()



Fixed submission:
2
3
4
5
6
7
8
9
while 1:
    (H,W) = [int(i) for i in input().split()]
    if H==W==0:
        break
    print('#'*W)
    for i in range(H-2):
        print('#'+'.'*(W-2)+'#')
    print('#'*W)
    print('')
Buggy python submission (verdict: Runtime Error):
a = int(input())
n = int(input().split())
n2 = int(input().split())
for i in range(a):
    n[i] = n2[a-i-1]

for i in range(a):
    if i !=(a-1):
        print("{} ".format(n2[i]), end = "")
    else:
        print("{}".format(n2[i]))


Fixed submission:
input()
print(' '.join(input().split()[::-1]))

Buggy python submission (verdict: Runtime Error):
a = int(input())
n = int(input().split())
n2 = int(input().split())
for i in range(a):
    n[i] = n2[a-i-1]

for i in range(a):
    if i !=(a-1):
        print("{} ".format(n2[i]), end = "")
    else:
        print("{}".format(n2[i]))


Fixed submission:
input()
print(' '.join(input().split()[::-1]))

Buggy python submission (verdict: Runtime Error):
ec    7340 KB     46 bytes     
?
1
2
input()
print(' '.join(input().split()[::-1]))


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


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


Fixed submission:
n=int(input())
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
    a,b = input().split()
    b = int(b)
    lst.remove((a,b))
for (a,b) in lst:
    print(a,b)

Buggy python submission (verdict: Runtime Error):
n=input()
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
    a,b =input().split()
    lst.remove((a,int(b)))
for (a,b) in lst:
    print(a,b)


Fixed submission:
n=int(input())
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
    a,b = input().split()
    b = int(b)
    lst.remove((a,b))
for (a,b) in lst:
    print(a,b)

Buggy python submission (verdict: Runtime Error):
n=input()
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
    a,b =input().split()
    lst.remove((a,int(b)))
for (a,b) in lst:
    print(a,b)


Fixed submission:
n=int(input())
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
    a,b = input().split()
    b = int(b)
    lst.remove((a,b))
for (a,b) in lst:
    print(a,b)

Buggy python submission (verdict: Runtime Error):
n=int(input())
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
    a,b = input().split()
    b = int(b)
    lst.remove(a,b)
for (a,b) in lst:
    print(a,b)


Fixed submission:
n=int(input())
lst=[(a,b) for a in ['S','H','C','D'] for b in range(1,14)]
for i in range(n):
    a,b = input().split()
    b = int(b)
    lst.remove((a,b))
for (a,b) in lst:
    print(a,b)
Buggy python submission (verdict: Runtime Error):
while True:
    m,f,r= map(int.input().split())
    if m+f+r==-3:break
    if m==-1 or f==-1 or r==-1:"F"
    elif m+f>=80:s="A"
    elif m+f>=65:s="B"
    elif m+f>=50:s="C"
    elif m+f>=30 and r>=50:s="C"
    elif m+f>=30:s="D"
    else:"F"
    print(str(s)


Fixed submission:
while True:
    m,f,r= map(int,input().split())
    if m+f+r==-3:break
    if m==-1 or f==-1:s="F"
    elif m+f>=80:s="A"
    elif m+f>=65:s="B"
    elif m+f>=50:s="C"
    elif m+f>=30 and r>=50:s="C"
    elif m+f>=30:s="D"
    else:s="F"
    print(str(s))
Buggy python submission (verdict: Runtime Error):
r,c=map(int,input().split())
tbl=[[0]*c for i in range(r+1)]
for i in range(r):
    tbl[i]=list(map(int,input().split()))
for i in range(c):
    for j in renge(r):
        tbl[r][i] +=tbl[j][i]
for i in rnage(r+1):
    m=0
    for j in range(c):
        m += tbl[i][j]
        print(tbl[i][j],end=" ")
    print(m)


Fixed submission:
r,c=map(int,input().split())
tbl=[[0]*c for i in range(r+1)]
for i in range(r):
    tbl[i]=list(map(int,input().split()))
for i in range(c):
    for j in range(r):
        tbl[r][i] +=tbl[j][i]
for i in range(r+1):
    m=0
    for j in range(c):
        m += tbl[i][j]
        print(tbl[i][j],end=" ")
    print(m)
Buggy python submission (verdict: Runtime Error):
n,m,l=map(int,input().split())
lst=[[]for i in range(n)]
for i in range(n):
    lst[i]=list(map(int,input().split()))
lst2=[[]for j in range(m)]
for i in rnage(m):
    lst2[j=list(map(int,input().split()))
for i in range(n):
    x=0
    for j in range(m):
         x =x+lst[i][j]*lst2[j][i]
    print(x)


Fixed submission:
n,m,l=map(int,input().split())
lst1=[list(map(int,input().split())) for i in range(n)]
lst2=[list(map(int,input().split())) for i in range(m)]
ans=[[0]*l for i in range(n)]
for i in range(n):
    for j in range(l):
        ans[i][j]= str(sum( lst1[i][k]*lst2[k][j] for k in range(m)))
for A in ans:
    print(*A)
Buggy python submission (verdict: Runtime Error):
cards = [[False] * 14 for i in range(4)]
n = int(input())
for i in range(n):
    suit, rank = input().split()
    r = int(rank)
    if suit == "S":
        s == 0
    elif suit == "H":
        s == 1
    elif suit == "C":
        s == 2
    else:
        s == 3
    cards[s][r] = True

name = ["S", "H", "C", "D"]
for s in range(4):
    for r in range(1, 14):
        if cards[s][r]:
            print(name[s], r)

Fixed submission:
cards = [[False] * 14 for i in range(4)]
n = int(input())
for i in range(n):
    suit, rank = input().split()
    r = int(rank)
    if suit == "S":
        s = 0
    elif suit == "H":
        s = 1
    elif suit == "C":
        s = 2
    else:
        s = 3
    cards[s][r] = True

name = ["S", "H", "C", "D"]
for s in range(4):
    for r in range(1, 14):
        if not cards[s][r]:
            print(name[s], r)