#include<iostream>
#include<algorithm>
#include<vector>

#define rep(i, n) for(int i = 0; i < n; i++)
typedef long long ll;

using namespace std;

const int INF = 100;

int main()
{

	int n, m, l;

	cin >> n >> m >> l;

	int A[200][200];
	rep(i, n)rep(j, m)cin >> A[i][j];

	int B[200][200];
	rep(i, m)rep(j, l)cin >> B[i][j];

	rep(i, n) {
		rep(j, l) {
			ll out = 0;
			rep(k, m) {
				out += A[i][k] * B[k][j];
			}
			if (j == 0) {
				cout << out;
			}
			else {
				cout << " " << out;
			}
		}
		cout << endl;
	}

	return 0;
}

