import Control.Monad
import Data.List

matrixMultiplicate a b | length (head a) == length b =
    [[sum (zipWith (*) ai bj) | bj <- (transpose b)] | ai <- a]

putMatrix =
  mapM_ (putStrLn . unwords . map show)
readMatrix r c =
  replicateM r $ fmap (map read . words) getLine

main = do
  [n, m, l] <- fmap (map read . words) getLine
  a <- readMatrix n m
  b <- readMatrix m l
  putMatrix (a `matrixMultiplicate` b)