import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
    	String[] nml= br.readLine().split(" ");
        int n = Integer.parseInt(nml[0]);
        int m = Integer.parseInt(nml[1]);
        int l = Integer.parseInt(nml[2]);
        int[][] nm = new int[n][m];
        int[][] ml = new int[m][l];
        
        for (int i = 0; i < n; i++)
        {
        	String[] nminput= br.readLine().split(" ");
        	for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	}
        }
        for (int i = 0; i < m; i++)
        {
        	String[] mlinput= br.readLine().split(" ");
        	for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	}
        }
        
        
        for (int i = 0; i < n; i++)
        {
        	for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	}
        	System.out.println();
        }
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args)throws Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
    	String[] nml= br.readLine().split(" ");
        int n = Integer.parseInt(nml[0]);
        int m = Integer.parseInt(nml[1]);
        int l = Integer.parseInt(nml[2]);
        int[][] nm = new int[n][m];
        int[][] ml = new int[m][l];
        
        for (int i = 0; i < n; i++)
        {
        	String[] nminput= br.readLine().split(" ");
        	for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	}
        }
        for (int i = 0; i < m; i++)
        {
        	String[] mlinput= br.readLine().split(" ");
        	for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	}
        }
        
        
        for (int i = 0; i < n; i++)
        {
        	for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	}
        	System.out.println();
        }
	}

} Main public static void main(String[] args)throws Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
    	String[] nml= br.readLine().split(" ");
        int n = Integer.parseInt(nml[0]);
        int m = Integer.parseInt(nml[1]);
        int l = Integer.parseInt(nml[2]);
        int[][] nm = new int[n][m];
        int[][] ml = new int[m][l];
        
        for (int i = 0; i < n; i++)
        {
        	String[] nminput= br.readLine().split(" ");
        	for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	}
        }
        for (int i = 0; i < m; i++)
        {
        	String[] mlinput= br.readLine().split(" ");
        	for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	}
        }
        
        
        for (int i = 0; i < n; i++)
        {
        	for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	}
        	System.out.println();
        }
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
    	String[] nml= br.readLine().split(" ");
        int n = Integer.parseInt(nml[0]);
        int m = Integer.parseInt(nml[1]);
        int l = Integer.parseInt(nml[2]);
        int[][] nm = new int[n][m];
        int[][] ml = new int[m][l];
        
        for (int i = 0; i < n; i++)
        {
        	String[] nminput= br.readLine().split(" ");
        	for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	}
        }
        for (int i = 0; i < m; i++)
        {
        	String[] mlinput= br.readLine().split(" ");
        	for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	}
        }
        
        
        for (int i = 0; i < n; i++)
        {
        	for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	}
        	System.out.println();
        }
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) String[] nml= br.readLine().split(" "); nml br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(nml[0]); n Integer.parseInt(nml[0]) Integer.parseInt Integer nml[0] nml 0 int m = Integer.parseInt(nml[1]); m Integer.parseInt(nml[1]) Integer.parseInt Integer nml[1] nml 1 int l = Integer.parseInt(nml[2]); l Integer.parseInt(nml[2]) Integer.parseInt Integer nml[2] nml 2 int[][] nm = new int[n][m]; nm new int[n][m] n m int[][] ml = new int[m][l]; ml new int[m][l] m l for (int i = 0; i < n; i++)
        {
        	String[] nminput= br.readLine().split(" ");
        	for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	}
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	String[] nminput= br.readLine().split(" ");
        	for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	}
        } {
        	String[] nminput= br.readLine().split(" ");
        	for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	}
        } String[] nminput= br.readLine().split(" "); nminput br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	} {
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	} nm[i][j] = Integer.parseInt(nminput[j]) nm[i][j] nm[i] nm i j Integer.parseInt(nminput[j]) Integer.parseInt Integer nminput[j] nminput j for (int i = 0; i < m; i++)
        {
        	String[] mlinput= br.readLine().split(" ");
        	for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	}
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
        	String[] mlinput= br.readLine().split(" ");
        	for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	}
        } {
        	String[] mlinput= br.readLine().split(" ");
        	for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	}
        } String[] mlinput= br.readLine().split(" "); mlinput br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	} {
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	} ml[i][j] = Integer.parseInt(mlinput[j]) ml[i][j] ml[i] ml i j Integer.parseInt(mlinput[j]) Integer.parseInt Integer mlinput[j] mlinput j for (int i = 0; i < n; i++)
        {
        	for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	}
        	System.out.println();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	}
        	System.out.println();
        } {
        	for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	}
        	System.out.println();
        } for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	} {
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	} long sum = 0; sum 0 for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
        			sum += nm[i][k] * ml[k][j];
        		} {
        			sum += nm[i][k] * ml[k][j];
        		} sum += nm[i][k] * ml[k][j] sum nm[i][k] * ml[k][j] nm[i][k] nm[i] nm i k ml[k][j] ml[k] ml k j System.out.print(sum) System.out.print System.out System System.out sum if (j != l- 1)
        			System.out.print(" "); j != l- 1 j l- 1 l 1 System.out.print(" ") System.out.print System.out System System.out " " System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args)throws Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
    	String[] nml= br.readLine().split(" ");
        int n = Integer.parseInt(nml[0]);
        int m = Integer.parseInt(nml[1]);
        int l = Integer.parseInt(nml[2]);
        int[][] nm = new int[n][m];
        int[][] ml = new int[m][l];
        
        for (int i = 0; i < n; i++)
        {
        	String[] nminput= br.readLine().split(" ");
        	for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	}
        }
        for (int i = 0; i < m; i++)
        {
        	String[] mlinput= br.readLine().split(" ");
        	for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	}
        }
        
        
        for (int i = 0; i < n; i++)
        {
        	for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	}
        	System.out.println();
        }
	}

} public class Main {
	public static void main(String[] args)throws Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
    	String[] nml= br.readLine().split(" ");
        int n = Integer.parseInt(nml[0]);
        int m = Integer.parseInt(nml[1]);
        int l = Integer.parseInt(nml[2]);
        int[][] nm = new int[n][m];
        int[][] ml = new int[m][l];
        
        for (int i = 0; i < n; i++)
        {
        	String[] nminput= br.readLine().split(" ");
        	for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	}
        }
        for (int i = 0; i < m; i++)
        {
        	String[] mlinput= br.readLine().split(" ");
        	for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	}
        }
        
        
        for (int i = 0; i < n; i++)
        {
        	for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	}
        	System.out.println();
        }
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
    	String[] nml= br.readLine().split(" ");
        int n = Integer.parseInt(nml[0]);
        int m = Integer.parseInt(nml[1]);
        int l = Integer.parseInt(nml[2]);
        int[][] nm = new int[n][m];
        int[][] ml = new int[m][l];
        
        for (int i = 0; i < n; i++)
        {
        	String[] nminput= br.readLine().split(" ");
        	for (int j = 0; j < m; j++)
        	{
        		nm[i][j] = Integer.parseInt(nminput[j]);
        	}
        }
        for (int i = 0; i < m; i++)
        {
        	String[] mlinput= br.readLine().split(" ");
        	for (int j = 0; j < l; j++)
        	{
        		ml[i][j] = Integer.parseInt(mlinput[j]);
        	}
        }
        
        
        for (int i = 0; i < n; i++)
        {
        	for (int j = 0; j < l; j++)
        	{
        		long sum = 0;
        		for (int k = 0; k < m; k++)
        		{
        			sum += nm[i][k] * ml[k][j];
        		}
        		System.out.print(sum);
        		if (j != l- 1)
        			System.out.print(" ");
        	}
        	System.out.println();
        }
	}

}