#include <iostream>
using namespace std;
int main()
{
int n, m, k;
int a[105][105] = {}, b[105][105] = {}, c[105][105] = {};
cin >> n >> m >> k;
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
cin >> a[i][j];
for (int i = 0; i < m; i++)
for (int j = 0; j < k; j++)
cin >> b[i][j];
for (int i = 0; i < n; i++)
{
for (int j = 0; j < k; j++)
{
for (int h = 0; h < m; h++)
c[i][j] += a[i][h] * b[h][j];
cout << c[i][j] << " ";
}
cout << endl;
}
return 0;
}