import Data.List
main = interact $ unlines . show' . itp1_7_d . read' . lines
 where
  read' xs = let ([n,m,l]:xs') = map (map read . words) xs in splitAt n xs'
  show' = map (unwords . map show)
itp1_7_d (mat_a, mat_b) = map (\v -> map (sum . zipWith (*) v) (transpose mat_b)) mat_a