#include<cstdio>
int main(void){int n,m,l,a[101][101],b[101][101],i,j,k;unsigned long long int c=0;scanf("%d%d%d",&n,&m,&l);for(i=0;i<n;++i){for(j=0;j<m;++j){scanf("%d",a[i]+j);}}for(i=0;i<m;++i){for(j=0;j<l;++j){scanf("%d",b[i]+j);}}for(i=0;i<n;++i){for(j=0;j<l;++j){for(c=0,k=0;k<m;++k){c+=a[i][k]*b[k][j];}printf("%lld%s",c,(j!=l-1)?" ":"");}puts("");}return(0);}
