#include<iostream>
using namespace std;
int main()
{
int m,p,n;
cin>>m>>p>>n;
int A[m][p];
int B[p][n];
int C[m][n];
for(int i=0;i<m;i++)
{
for(int j=0;j<p;j++)
{
cin>>A[i][j];
}
}
for(int i=0;i<p;i++)
{
for(int j=0;j<n;j++)
{
cin>>B[i][j];
}
}
for(int i=0;i<m;i++)
{
for(int j=0;j<n;j++)
{
C[i][j]=0;
for(int k=0;k<p;k++)
{
C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
}
}
}
for(int i=0;i<m;i++)
{
for(int j=0;j<n;j++)
{
cout<<C[i][j]<<" ";
}
cout<<endl;
}
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCkKewogICAgaW50IG0scCxuOwogICAgY2luPj5tPj5wPj5uOwogICAgaW50IEFbbV1bcF07CiAgICBpbnQgQltwXVtuXTsKICAgIGludCBDW21dW25dOwogICAgZm9yKGludCBpPTA7aTxtO2krKykKICAgIHsKICAgICAgICBmb3IoaW50IGo9MDtqPHA7aisrKQogICAgICAgIHsKICAgICAgICAgICBjaW4+PkFbaV1bal07CiAgICAgICAgfQogICAgfQogICAgZm9yKGludCBpPTA7aTxwO2krKykKICAgIHsKICAgICAgICBmb3IoaW50IGo9MDtqPG47aisrKQogICAgICAgIHsKICAgICAgICAgICAgY2luPj5CW2ldW2pdOwogICAgICAgIH0KICAgIH0KICAgIGZvcihpbnQgaT0wO2k8bTtpKyspCiAgICB7CiAgICAgICAgZm9yKGludCBqPTA7ajxuO2orKykKICAgICAgICB7CiAgICAgICAgICAgIENbaV1bal09MDsKICAgICAgICAgICAgZm9yKGludCBrPTA7azxwO2srKykKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgQ1tpXVtqXT1DW2ldW2pdKyhBW2ldW2tdKkJba11bal0pOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQogICAgZm9yKGludCBpPTA7aTxtO2krKykKICAgIHsKICAgICAgICBmb3IoaW50IGo9MDtqPG47aisrKQogICAgICAgIHsKICAgICAgICAgICAgY291dDw8Q1tpXVtqXTw8IiAiOwogICAgICAgIH0KICAgICAgICBjb3V0PDxlbmRsOwogICAgfQoKICAgIHJldHVybiAwOwp9