Buggy python submission (verdict: Runtime Error):
n, m = input()
A, b = []
c = 0
  
for i in range(n):
   A += [map(int, raw_input().split())]

for j in range(m):
   b += [input()]
  
for i in range(n):
   for j in range(m):
      c += A[i][j] * b[j]
   print c

Fixed submission:
n, m = map(int, raw_input().split())
A = []
b = []
    
for i in range(0, n):
   A += [map(int, raw_input().split())]
  
for j in range(0, m):
   b += [input()]
     
for i in range(0, n):
   c = 0
   for j in range(0, m):
      c += A[i][j] * b[j]
   print c

Buggy python submission (verdict: Runtime Error):
n, m = input()
A = []
b = []
c = 0

for i in range(n):
   A += [map(int, raw_input().split())]
   for j in range(m):
      b += [input()]
      c += A[i][j] * b[j]
   print c

Fixed submission:
n, m = map(int, raw_input().split())
A = []
b = []
    
for i in range(0, n):
   A += [map(int, raw_input().split())]
  
for j in range(0, m):
   b += [input()]
     
for i in range(0, n):
   c = 0
   for j in range(0, m):
      c += A[i][j] * b[j]
   print c

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

Fixed submission:
n, m = map(int, raw_input().split())
A = []
b = []
    
for i in range(0, n):
   A += [map(int, raw_input().split())]
  
for j in range(0, m):
   b += [input()]
     
for i in range(0, n):
   c = 0
   for j in range(0, m):
      c += A[i][j] * b[j]
   print c

Buggy python submission (verdict: Runtime Error):
n, m = input()
A = []
b = []
c = 0
  
for i in range(n):
   A += [map(int, raw_input().split())]

for j in range(m):
   b += [input()]
   
for i in range(n):
   for j in range(m):
      c += A[i][j] * b[j]
   print c

Fixed submission:
n, m = map(int, raw_input().split())
A = []
b = []
    
for i in range(0, n):
   A += [map(int, raw_input().split())]
  
for j in range(0, m):
   b += [input()]
     
for i in range(0, n):
   c = 0
   for j in range(0, m):
      c += A[i][j] * b[j]
   print c

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

Fixed submission:
n, m = map(int, raw_input().split())
A = []
b = []
    
for i in range(0, n):
   A += [map(int, raw_input().split())]
  
for j in range(0, m):
   b += [input()]
     
for i in range(0, n):
   c = 0
   for j in range(0, m):
      c += A[i][j] * b[j]
   print c

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

Fixed submission:
n, m = map(int, raw_input().split())
A = []
b = []
    
for i in range(0, n):
   A += [map(int, raw_input().split())]
  
for j in range(0, m):
   b += [input()]
     
for i in range(0, n):
   c = 0
   for j in range(0, m):
      c += A[i][j] * b[j]
   print c