"use strict";
main(require("fs").readFileSync("/dev/stdin", "utf8").replace(/\r?\n$/, "").split(/\r?\n/));

function main(lines){
	lines = lines.map(function(str){return str.split(" ").map(Number);});
	var nml = lines[0];
	var a = lines.slice(1, 1+nml[0]);
	var b = lines.slice(1+nml[0]);
	var c = [];
	for(var i=0;i<nml[0];i++){
		c.push([]);
		for(var j=0;j<nml[2];j++){
			var d = 0;
			for(var k=0;k<nml[1];k++) d += a[i][k] * b[k][j];
			c[i].push(d);
		}
	}
	console.log(c.map(function(r){return r.join(" ");}).join("\n"));
}