import java.util.Scanner;
import java.math.BigInteger;
public class Main
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int l = input.nextInt();
		BigInteger s = BigInteger.valueOf(0);
		int[][] a = new int[111][111];
		int[][] b = new int[111][111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			for(int k = 0; k < l; k++)
				b[i][k] = input.nextInt();

		for (int i = 0; i < n; i++){
			for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			}
		}
	}
} import java.util.Scanner; Scanner java.util import java.math.BigInteger; BigInteger java.math public class Main
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int l = input.nextInt();
		BigInteger s = BigInteger.valueOf(0);
		int[][] a = new int[111][111];
		int[][] b = new int[111][111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			for(int k = 0; k < l; k++)
				b[i][k] = input.nextInt();

		for (int i = 0; i < n; i++){
			for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			}
		}
	}
} Main public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int l = input.nextInt();
		BigInteger s = BigInteger.valueOf(0);
		int[][] a = new int[111][111];
		int[][] b = new int[111][111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			for(int k = 0; k < l; k++)
				b[i][k] = input.nextInt();

		for (int i = 0; i < n; i++){
			for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			}
		}
	} main {
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int l = input.nextInt();
		BigInteger s = BigInteger.valueOf(0);
		int[][] a = new int[111][111];
		int[][] b = new int[111][111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			for(int k = 0; k < l; k++)
				b[i][k] = input.nextInt();

		for (int i = 0; i < n; i++){
			for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			}
		}
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int n = input.nextInt(); n input.nextInt() input.nextInt input int m = input.nextInt(); m input.nextInt() input.nextInt input int l = input.nextInt(); l input.nextInt() input.nextInt input BigInteger s = BigInteger.valueOf(0); s BigInteger.valueOf(0) BigInteger.valueOf BigInteger 0 int[][] a = new int[111][111]; a new int[111][111] 111 111 int[][] b = new int[111][111]; b new int[111][111] 111 111 for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt(); for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt(); int k = 0; int k = 0; k 0 k < m k m k++ k++ k a[i][k] = input.nextInt(); a[i][k] = input.nextInt() a[i][k] a[i] a i k input.nextInt() input.nextInt input for(int i = 0; i < m; i++)
			for(int k = 0; k < l; k++)
				b[i][k] = input.nextInt(); int i = 0; int i = 0; i 0 i < m i m i++ i++ i for(int k = 0; k < l; k++)
				b[i][k] = input.nextInt(); for(int k = 0; k < l; k++)
				b[i][k] = input.nextInt(); int k = 0; int k = 0; k 0 k < l k l k++ k++ k b[i][k] = input.nextInt(); b[i][k] = input.nextInt() b[i][k] b[i] b i k input.nextInt() input.nextInt input for (int i = 0; i < n; i++){
			for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			}
		} {
			for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			}
		} for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			} int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			} {
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			} s = BigInteger.valueOf(0) s BigInteger.valueOf(0) BigInteger.valueOf BigInteger 0 for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				} {
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				} s = s.add(BigInteger.valueOf(a[i][j] * b[j][k])) s s.add(BigInteger.valueOf(a[i][j] * b[j][k])) s.add s BigInteger.valueOf(a[i][j] * b[j][k]) BigInteger.valueOf BigInteger a[i][j] * b[j][k] a[i][j] a[i] a i j b[j][k] b[j] b j k if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " "); k == l-1 k l-1 l 1 System.out.println(s) System.out.println System.out System System.out s System.out.print(s + " ") System.out.print System.out System System.out s + " " s " " String args[] args public class Main
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int l = input.nextInt();
		BigInteger s = BigInteger.valueOf(0);
		int[][] a = new int[111][111];
		int[][] b = new int[111][111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			for(int k = 0; k < l; k++)
				b[i][k] = input.nextInt();

		for (int i = 0; i < n; i++){
			for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			}
		}
	}
} public class Main
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int l = input.nextInt();
		BigInteger s = BigInteger.valueOf(0);
		int[][] a = new int[111][111];
		int[][] b = new int[111][111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			for(int k = 0; k < l; k++)
				b[i][k] = input.nextInt();

		for (int i = 0; i < n; i++){
			for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			}
		}
	}
} Main
import java.util.Scanner;
import java.math.BigInteger;
public class Main
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int l = input.nextInt();
		BigInteger s = BigInteger.valueOf(0);
		int[][] a = new int[111][111];
		int[][] b = new int[111][111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			for(int k = 0; k < l; k++)
				b[i][k] = input.nextInt();

		for (int i = 0; i < n; i++){
			for (int k = 0; k < l; k++){
				s = BigInteger.valueOf(0);
				for(int j = 0; j < m; j++){
					s = s.add(BigInteger.valueOf(a[i][j] * b[j][k]));
				}

				if(k == l-1)
					System.out.println(s);
				else
					System.out.print(s + " ");
			}
		}
	}
}