import std.stdio, std.string, std.conv;
void main() {
	long n, m, l;
	"%d %d %d\n".readf(&n, &m, &l);
	long[][] a, b;
	foreach (_n; 0..n) a ~= readln.split.to!(long[]);
	foreach (_m; 0..m) b ~= readln.split.to!(long[]);
	foreach (_a; a) {
		long[] c = [];
		foreach (_l; 0..l) {
			long s = 0;
			foreach (_m; 0..m) s += _a[_m] * b[_m][_l];
			c ~= s;
		}
		c.to!(string[]).join(" ").writeln;
	}
}