var n, m, l, a = [], b = [];

process.stdin.setEncoding('ascii');
process.stdin.on('data', function (chunk) {
	var line, ary, i, j, k, ai, bk;
	line = chunk.toString().split(/\r?\n/);
	for (i in line) {
		ary = line[i].split(' ');
		if (ary.length !== 0) line[i] = ary.map(Number);
	}

	ary = line.shift();
	n = ary[0];
	m = ary[1];
	l = ary[2];

	for (i = 0; i < n; i++) {
		ary = line.shift();
		ai = new Int16Array(m);
		for (k in ary) ai[k] = ary[k];
		a.push(ai);
	}

	for (j = 0; j < l; j++) b.push(new Int16Array(m));
	for (k = 0; k < m; k++) {
		bk = line.shift();
		for (j = 0; j < l; j++) b[j][k] = bk[j];
	}

	process.stdin.close();
});

process.stdin.on('close', function() {
	var i, j, k, ci;

	for (i in a) {
		ci = "";
		for (j in b) {
			ci = ci + inner_product(a[i], b[j]) + " ";
		}
		console.log(ci.trim());
	}
});

function inner_product(a, b) {
	var k, res = 0;
	for (k = m - 1; k >= 0; k--) res += a[k] * b[k];
	return res;
}