import Control.Monad
import Data.List
main = do
  [n, m, l] <- return . map (\x -> read x :: Int) . words =<< getLine
  a <- replicateM n $ return . map (\x -> read x :: Int) . words =<< getLine
  b <- replicateM m $ return . map (\x -> read x :: Int) . words =<< getLine
  mapM_ (\x -> putStrLn $ unwords . map show $ x) $ transpose $ mul17 a (transpose b)