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

printMatrix = mapM_ putStrLn . map (unwords . map show)

main = do
	[n, m, l] <- (map read . words) <$> getLine
	a <- replicateM n $ (map read . words) <$> getLine
	b <- replicateM m $ (map read . words) <$> getLine
	printMatrix $ [[sum (zipWith (*) a' b') | b' <- transpose b ] | a' <- a]