#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
int main()
{
  int n,m,l; cin>>n>>m>>l;
  long long m1[n][m], m2[m][l];
  rep(i,n)rep(j,m) cin>>m1[i][j];
  rep(i,m)rep(j,l) cin>>m2[i][j];
  rep(i,n)
  {
    rep(j,l)
    {
      long long ans = 0;
      rep(k,m)
      {
        ans += m1[i][k]*m2[k][j];
      }
      cout << ans;
      if(j!=l-1) cout << " ";
    }
    cout << "\n";
  }
}
