import Control.Applicative
import Control.Monad
import Data.List

multiplyMatirix :: [[Int]] -> [[Int]] -> [[Int]]
multiplyMatirix a b = map (\v -> map (sum . zipWith (*) v) (transpose b)) a

main :: IO ()
main = do
    [n, m, l] <- (map (read :: String -> Int) . words) <$> getLine
    a <- replicateM n ((map read . words) <$> getLine)
    b <- replicateM m ((map read . words) <$> getLine)
    putStr $ unlines $ map unwords $ (map (map show)) $ multiplyMatirix a b