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

splitN _ [] = []
splitN n x = take n x : splitN n (drop n x)

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 $ splitN l $ [sum (zipWith (*) a' b') | a' <- a, b' <- transpose b]