Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
d = {"S":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "H":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "D":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "C":[1,2,3,4,5,6,7,8,9,10,11,12,13]}
n = int(input())
for i in range(n):
    #N, M = map(str,input().split())
    N, M = map(str,data[i][0].split())
    d[N][int(M)-1] ="None"

for j in range(len(d)):
    if j==1:
        list_d = d["S"]
        c = "S"
    elif j == 2:
        list_d = d["H"]
        c = "H"
    elif j == 3:
        list_d = d["D"]
        c = "D"
    else:
        list_d = d["C"]
        c = "C"
    for i in range(len(list_d)):
        if(list_d[i] != "None"):
            print(c , list_d[i])


Fixed submission:
d = {"S":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "H":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "C":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "D":[1,2,3,4,5,6,7,8,9,10,11,12,13]}
n = int(input())
for i in range(n):
    N, M = map(str,input().split())
    d[N][int(M)-1] ="None"

for j in range(len(d)):
    if j==0:
        list_d = d["S"]
        c = "S"
    elif j == 1:
        list_d = d["H"]
        c = "H"
    elif j == 2:
        list_d = d["C"]
        c = "C"
    else:
        list_d = d["D"]
        c = "D"
    for i in range(len(list_d)):
        if(list_d[i] != "None"):
            print(c , list_d[i])

Buggy python submission (verdict: Runtime Error):
d = {"S":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "H":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "D":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "C":[1,2,3,4,5,6,7,8,9,10,11,12,13]}
n = int(input())
for i in range(n):
    #N, M = map(str,input().split())
    N, M = map(str,data[i][0].split())
    d[N][int(M)-1] ="None"

for j in range(len(d)):
    if j==1:
        list_d = d["S"]
        c = "S"
    elif j == 2:
        list_d = d["H"]
        c = "H"
    elif j == 3:
        list_d = d["D"]
        c = "D"
    else:
        list_d = d["C"]
        c = "C"
    for i in range(len(list_d)):
        if(list_d[i] != "None"):
            print(c , list_d[i])


Fixed submission:
d = {"S":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "H":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "C":[1,2,3,4,5,6,7,8,9,10,11,12,13],
     "D":[1,2,3,4,5,6,7,8,9,10,11,12,13]}
n = int(input())
for i in range(n):
    N, M = map(str,input().split())
    d[N][int(M)-1] ="None"

for j in range(len(d)):
    if j==0:
        list_d = d["S"]
        c = "S"
    elif j == 1:
        list_d = d["H"]
        c = "H"
    elif j == 2:
        list_d = d["C"]
        c = "C"
    else:
        list_d = d["D"]
        c = "D"
    for i in range(len(list_d)):
        if(list_d[i] != "None"):
            print(c , list_d[i])
Buggy python submission (verdict: Runtime Error):
m = []
f = []
r = []
while(True):
    M,F,R=map(int,input().split())
    if M == -1 and F == -1 and R == -1:
        break
    else:
        m.append(M)
        f.append(F)
        r.append(R)
for i in range(len(m)):
    if (m == -1 or f ==-1) or m+f<30:
        print("F")
    elif m+f>=80:
        print("A")
    elif m+f<80 and m+f>=65:
        print("B")
    elif m+f<65 and m+f>=50:
        print("C")
    elif m+f<50 and m+f>=30:
        print("D")
    elif m+f<30 and r>50:
        print("C")
    elif m+f<30 and r<50:
        print("D")


Fixed submission:
m = []
f = []
r = []
while(True):
    M,F,R=map(int,input().split())
    if M == -1 and F == -1 and R == -1:
        break
    else:
        m.append(M)
        f.append(F)
        r.append(R)
for i in range(len(m)):
    score = m[i]+f[i]
    if (m[i] == -1 or f[i] ==-1) or score<30:
        print("F")
    elif score>=80:
        print("A")
    elif 65<=score<80:
        print("B")
    elif 50<=score<65:
        print("C")
    elif 30<=score<50 and r[i]>=50:
        print("C")
    elif 30<=score<50:
        print("D")

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


Fixed submission:
m = []
f = []
r = []
while(True):
    M,F,R=map(int,input().split())
    if M == -1 and F == -1 and R == -1:
        break
    else:
        m.append(M)
        f.append(F)
        r.append(R)
for i in range(len(m)):
    score = m[i]+f[i]
    if (m[i] == -1 or f[i] ==-1) or score<30:
        print("F")
    elif score>=80:
        print("A")
    elif 65<=score<80:
        print("B")
    elif 50<=score<65:
        print("C")
    elif 30<=score<50 and r[i]>=50:
        print("C")
    elif 30<=score<50:
        print("D")
Buggy python submission (verdict: Runtime Error):
n,m,l = map(int,input().split())
n_list=[] 
m_list = []
c=[[0 for i in range(n)] for j in range(l)]
for i in range(n):
    n_list.append([int(i) for i in input().split()])
for j in range(m):
    m_list.append([int(i) for i in input().split()])
for i in range(n):
    for j in range(l):
        for k in range(m):
            c[i][j]+=n_list[i][k]*m_list[k][j]

for i in range(n):
    print(' '.join(str(i) for i in c[i]))


Fixed submission:
n,m,l = map(int,input().split())
n_list=[] 
m_list = []
c=[[0 for i in range(l)] for j in range(n)]
for i in range(n):
    n_list.append([int(i) for i in input().split()])
for j in range(m):
    m_list.append([int(i) for i in input().split()])
for i in range(n):
    for j in range(l):
        for k in range(m):
            c[i][j]+=n_list[i][k]*m_list[k][j]

for i in range(n):
    print(' '.join(str(i) for i in c[i]))
Buggy python submission (verdict: Runtime Error):
string=[]
W = input()#単語入力
while True:
    T = input()#入力
    if T == '':#EOT入力のときループぬける
        break
    string.append(T)#list追加
count=0
for i in range(len(string)):
    string[i]=string[i].lower()
    string[i] = string[i].split(" ")
    for j in range(len(string[i])):
        if W == string[i][j]:
            count+=1
print(count)


Fixed submission:
string=[]
W = input()#単語入力
while True:
    T = input()#入力
    if T == 'END_OF_TEXT':#EOT入力のときループぬける
        break
    string.append(T)#list追加
count=0
for i in range(len(string)):
    string[i]=string[i].lower()
    string[i] = string[i].split(" ")
    for j in range(len(string[i])):
        if W == string[i][j]:
            count+=1
print(count)
Buggy python submission (verdict: Runtime Error):
import sys
def oncount(x):
    r=0
    while x>0:
        r+=x&1
        x=x>>1
    return r

dp=[[0]*331 for i in range(1024)]
for i in range(10):
    dp[1<<i][i]=1
for i in range(1024):
    for j in range(331):
        t=oncount(i)
        for k in range(10):
            if 1&(i>>k):
                x=j-t*k
                if x>=0: dp[i][j]+=dp[i&~(1<<k)][x]
                
for a in sys.stdin
    n,s=map(int,a.split())
    ans=0
    if s<=330:
        for i in range(1024):
            if oncount(i)==n:ans+=dp[i][s]
    print ans

Fixed submission:
import sys
def oncount(x):
    r=0
    while x>0:
        r+=x&1
        x=x>>1
    return r

dp=[[0]*331 for i in range(1024)]
for i in range(10):
    dp[1<<i][i]=1
for i in range(1024):
    for j in range(331):
        t=oncount(i)
        for k in range(10):
            if 1&(i>>k):
                x=j-t*k
                if x>=0: dp[i][j]+=dp[i&~(1<<k)][x]
                
for a in sys.stdin:
    n,s=map(int,a.split())
    ans=0
    if s<=330:
        for i in range(1024):
            if oncount(i)==n:ans+=dp[i][s]
    print ans
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, input().split)
if a < b < c :
    print("Yes")
else:
    print("No")

Fixed submission:
a,b,c = map(int,input().split())
if a<b<c:
    print("Yes")
else:
    print("No")

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

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


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

Fixed submission:
x =int(input())
y = x**3
print(y)
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
if 1 <= a <= 100  1 <= b <= 100:
    c = a * b
    print(c)

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

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
if 1 <= a <= 100 and 1 <= b <= 100:
    c = a * b
    d = 2(a + b)
    print(c''d)  

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

Buggy python submission (verdict: Runtime Error):
x = input()
a, b = x.split()
if 1 <= a <= 100 and 1 <= b <= 100:
    c = a * b
    d = 2(a + b)
    print(c''d)   

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

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

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

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

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

Fixed submission:
S = int(input())
h = S // 3600
m = (S % 3600) // 60
s = (S % 3600) % 60
print('{}:{}:{}'.format(h,m,s))
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')
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')
elif: 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 = map(int,input().split())
b = a.sort()
c = ' '.join(b)
print(c)

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

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

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

Buggy python submission (verdict: Runtime Error):
a = map(int,input().split())
b = a.sort()
print('{} {} {}'.format(b[0],b[1],b[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().split()))
y = x.sort()
print(y[0], y[1], y[2])

Fixed submission:
x = list(map(int,input().split()))
x.sort()
print(x[0],x[1],x[2])
Buggy python submission (verdict: Runtime Error):
N = input()
a = []
for i in range(N):
    a.append(input())
    print('case'{}':'{}.format(N,a))

Fixed submission:
l = []
y = 1
while True:
    x = int(input())
    if x == 0:
        break
    l.append(x)
    print('Case {}: {}'.format(y,x))
    y += 1

Buggy python submission (verdict: Runtime Error):
N = input()
a = []
for i in range(N):
    a.append(input())
    print('case{}:{}'.format(N,a))

Fixed submission:
l = []
y = 1
while True:
    x = int(input())
    if x == 0:
        break
    l.append(x)
    print('Case {}: {}'.format(y,x))
    y += 1

Buggy python submission (verdict: Runtime Error):
x = input()
a = []
for i in range(N):
    a.append(input())
    print('case{}:{}'.format(x,a))

Fixed submission:
l = []
y = 1
while True:
    x = int(input())
    if x == 0:
        break
    l.append(x)
    print('Case {}: {}'.format(y,x))
    y += 1

Buggy python submission (verdict: Runtime Error):
import sys
i = 1
while True:
    x = sys.stdin.read()
    if x == 0:
        break
    print('Case {}: {}'.format(i,x))
    x + 1

Fixed submission:
l = []
y = 1
while True:
    x = int(input())
    if x == 0:
        break
    l.append(x)
    print('Case {}: {}'.format(y,x))
    y += 1

Buggy python submission (verdict: Runtime Error):
import sys
i = 1
while True:
    x = sys.stdin.read()
    if x.strip() == 0:
        break
    print('Case {}: {}'.format(i,x))
    x + 1

Fixed submission:
l = []
y = 1
while True:
    x = int(input())
    if x == 0:
        break
    l.append(x)
    print('Case {}: {}'.format(y,x))
    y += 1

Buggy python submission (verdict: Runtime Error):
l = []
while True:
    x = input()
    if x == 0:
        break
    l.append(x)
    y = l.index(x) + 1
    print('Case {}: {}'.format(y,x))
    y + 1    

Fixed submission:
l = []
y = 1
while True:
    x = int(input())
    if x == 0:
        break
    l.append(x)
    print('Case {}: {}'.format(y,x))
    y += 1

Buggy python submission (verdict: Runtime Error):
l = []
y = 1
while True:
    x = input()
    if x == 0:
        break
    l.append(x)
    print('Case {}: {}'.format(y,x))
    y += 1

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

if 1 <= a, b, c <= 10000 and a <= b:
    l = [i for i in range(a,b+1) if c % a ==0]
print(len(l))

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

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

Fixed submission:
import math
r = float(input())
s = r ** 2 * math.pi
c = 2 * r * math.pi
print('{0:.5f} {1:.5f}'.format(s,c))
Buggy python submission (verdict: Runtime Error):
while True:
    h,w = map(int,input().split())
    def bw(x):
        if x % 2 == 0:
            print((x//2)*('#.'))
        elif x % 2 == 1:
            print((x//2)*('#.')+'#')
    def wb(x):
        if x % 2 == 0:
            print((x//2)*('.#'))
        elif x % 2 == 0:
            print((x//2)*('.#')+'.')
    for i in range(h+1):
        if i % 2 == 0:
            bw(w)
        else:
            wb(w)
    print(i)
            

Fixed submission:
while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    a = '#.'
    b = '#'
    c = '.#'
    d = '.'

    def bw(n):
        if n % 2 == 0:
            print((n//2)*a)
        else:
            print((n//2)*a + b)

    def wb(n):
        if n % 2 == 0:
            print((n//2)*c)
        else:
            print((n//2)*c + d)

    for i in range(1,H + 1):
        if i % 2 == 0:
            wb(W)
        else:
            bw(W)
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H,W = map(int,input().split())
    a = '#.'
    b = '#'
    c = '.#'
    d = '.'

    def bw(n):
        if n % 2 == 0:
            print((n//2)*a)
        else:
            print((n//2)*a + b)

    def wb(n):
        if n % 2 == 0:
            print((n//2)*c)
        else:
            print((n//2)*c + d)

    for i in range(1,H + 1):
        if i % 2 == 0:
            wb(W)
        else:
            bw(W)
    print()

Fixed submission:
while True:
    H,W = map(int,input().split())
    if H == W == 0:
        break
    a = '#.'
    b = '#'
    c = '.#'
    d = '.'

    def bw(n):
        if n % 2 == 0:
            print((n//2)*a)
        else:
            print((n//2)*a + b)

    def wb(n):
        if n % 2 == 0:
            print((n//2)*c)
        else:
            print((n//2)*c + d)

    for i in range(1,H + 1):
        if i % 2 == 0:
            wb(W)
        else:
            bw(W)
    print()
Buggy python submission (verdict: Runtime Error):
n = int(input())
a_list = list(map(int,input().split))
reversed_a_list = a_list.reverse()
a = ' '.join(reversed_a_list)
print(a)

Fixed submission:
n = int(input())
a = list(map(int,input().split()))[::-1]
print(' '.join(map(str,a)))

Buggy python submission (verdict: Runtime Error):
n = input()
a_list == list(map(int,input().split()))
if n == len(a_list):
    r_list = reversed(a_list)
    numbers = ' '.join(a_list)
    print(numbers)

Fixed submission:
n = int(input())
a = list(map(int,input().split()))[::-1]
print(' '.join(map(str,a)))
Buggy python submission (verdict: Runtime Error):
n = int(input())
l = list(map(int,input().split())

print(min(l),max(l),sum(l))


Fixed submission:
n = int(input())
ns = list([int(i) for i in input().split()])
print(min(ns),max(ns),sum(ns))

Buggy python submission (verdict: Runtime Error):
n = input()
ns = list(map(int,input().split())
print(min(ns),max(ns),sum(ns))


Fixed submission:
n = int(input())
ns = list([int(i) for i in input().split()])
print(min(ns),max(ns),sum(ns))
Buggy python submission (verdict: Time Limit Exceeded):
while True:
  H,W = map(int,input().split())
  if (H,W) == (0,0):
    break
  i = 0
  j = 0
  while i < H:
    while j < W:
      print('#')
      if j == W:
        print("\n")
      j += 1
  i += 1


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

Buggy python submission (verdict: Time Limit Exceeded):
while True:
  H,W = map(int, input().split())
  if H == 0 and W == 0:
    break
  print(H,W)
  i = 0
  j = 0
  while True:
    while True:
      if j == W and i == H:
        break
      print('#')
      if j == W:
        print("\n")
        i += 1
      j += 1


Fixed submission:
while True:
  H,W = map(int, input().split())
  if H == 0 and W == 0:
    break
  for i in range(H):
    print("#"*W)
  print()
Buggy python submission (verdict: Runtime Error):
while True:
  H,W = map(int, input().split())
  if H == 0 and W == 0:
    break
    
  if i in range(round(H/2)):
    print(("#"+".")*round(W/2))
    
  if i in range(int(H/2)):
    print(("."+"#")*round(W/2))    


Fixed submission:
while True:
    (H,W) = [int(i) for i in input().split()]
    if H==W==0:
        break
    for i in range(H):
        for j in range(W):
            if (i+j)%2==0: print('#',end="")
            else: print('.',end="")
        print('')
    print('')

Buggy python submission (verdict: Runtime Error):
while True:
  H,W = map(int, input().split())
  if H == 0 and W == 0:
    break
  if i in range(round(H/2)):
    print(("#"+".")*round(W/2))
  elif i in range(int(H/2)):
    print(("."+"#")*round(W/2))    


Fixed submission:
while True:
    (H,W) = [int(i) for i in input().split()]
    if H==W==0:
        break
    for i in range(H):
        for j in range(W):
            if (i+j)%2==0: print('#',end="")
            else: print('.',end="")
        print('')
    print('')

Buggy python submission (verdict: Runtime Error):
while True:
    (H,W) = [int(i) for i in input().split()]
    if H==W==0:
        break
    for i in range(H):
        for j in range(W):
            if (i+j)%2==0: print('#',end="")
            else: p0rint('.',end="")
        print('')
    print('')


Fixed submission:
while True:
    (H,W) = [int(i) for i in input().split()]
    if H==W==0:
        break
    for i in range(H):
        for j in range(W):
            if (i+j)%2==0: print('#',end="")
            else: print('.',end="")
        print('')
    print('')
Buggy python submission (verdict: Runtime Error):
n = input()
i = 0
while True:
  if i == n:
    break
  a[i] = input().split
  a[i] = a[n-i]
  print(a[i])


Fixed submission:
n = int(input())
l = list(map(int,input().split()))
l.reverse()
print(' '.join(map(str,l)))

Buggy python submission (verdict: Runtime Error):
n = input()
int i
while True:
  if i == n:
    break
  a[i] = input().split
  a[i] = a[n-i]
  print(a[i])


Fixed submission:
n = int(input())
l = list(map(int,input().split()))
l.reverse()
print(' '.join(map(str,l)))
Buggy python submission (verdict: Runtime Error):
n = int(input())
tenants = {}
for i in range(n):
  tenant = list(map(int,input().split()))
  key = f'{b} {f} {r}'
  if key in d:
    d[key] += v
  else:
    d[key] = v
    
  b = tenant[0]
  f = tenant[1]
  r = tenant[2]
  v = tenant[3]
    
for b in range(1,5):
  for f in range(1,4):
    for r in range(1,11):
      key = f'{b} {f} {r}'
      if key in d:
        print(" "+str(d[key]),end="")
      else:
        print(" "+str(0),end="")
      if r == 10:
        print()
      if r == 10 and f == 3 and b != 4:
        print('####################')


Fixed submission:
n = int(input())
d = {}
for i in range(n):
  [b, f, r, v] = list(map(int,input().split()))
  key = f'{b} {f} {r}'
  if key in d:
    d[key] += v
  else:
    d[key] = v
    
for b in range(1,5):
  for f in range(1,4):
    for r in range(1,11):
      key = f'{b} {f} {r}'
      if key in d:
        print(" "+str(d[key]),end="")
      else:
        print(" "+str(0),end="")
      if r == 10:
        print()
      if r == 10 and f == 3 and b != 4:
        print('####################')
Buggy python submission (verdict: Runtime Error):
num=1
while True;
    x= int(input())
    if x==0; break
    print ("Case{0}:{1}". fromat(num,x))
    
    num +=1


Fixed submission:
num = 1
while True:
    x = int(input())
    if x == 0: break
    print ("Case {0}: {1}".format(num,x))
    num += 1
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
 
  if m==-1 or f==-1:
    print('F')
  elif m+f>=80:
    print('A')
  elif 65<=m+f:
    print('B')
  elif 50<=m+f:
    print('C')  
  elif 30<=m+f:
    if r>=50:
      print('C')
    else:
      print('D')
  else:
    print('F')


Fixed submission:
n, m, l = map(int, input().split())
a = [[] for _ in range(n)]
b = [[] for _ in range(m)]
  
for i in range(n):
  a[i] = list(map(int, input().split()))
  
for i in range(m):
  b[i] = list(map(int, input().split()))
  
for i in range(n):
  line = []
   
  for j in range(l):
    c = 0
     
    for k in range(m):
      c += a[i][k]*b[k][j]
     
    line.append(str(c))
 
  print(' '.join(line))