using namespace std;
int main(){
    int m,n,p;
    while(cin>>m>>n>>p){
        int a[100][100]={0};
        int b[100][100]={0};
        int c[100][100]={0};
        int temp;
        for(int i=0;i<m;i++){
            for(int j=0;j<n;j++){
                cin>>temp;
                a[i][j]=temp;
            }
        }
        for(int i=0;i<n;i++){
            for(int j=0;j<p;j++){
                cin>>temp;
                b[i][j]=temp;
            }
        }
       for(int i=0;i<m;i++){
           for(int j=0;j<p;j++){
               for(int k=0;k<n;k++){
                   c[i][j]+=a[i][k]*b[k][j];
               }
           }
       }
        for(int i=0;i<m;i++){
            for(int j=0;j<p;j++){
                cout<<c[i][j]<<' ';
            }
            cout<<endl;
        }
    }
}