import Data.List
import Control.Monad

type Matrix = [[Int]]

(|*|) :: Matrix -> Matrix -> Matrix
ma |*| mb = [[sum $ zipWith (*) mai mbti | mbti <- mbt] | mai <- ma]
  where mbt = transpose mb

getList :: Read a => IO [a]
getList = fmap (map read . words) getLine

main = do
  [n, m, l] <- getList
  mat1 <- replicateM n getList
  mat2 <- replicateM m getList
  mapM_ putStrLn $ map (unwords . map show) $ mat1 |*| mat2