#D6344. Matrix Multiplication

    ID: 5272 Type: Default 1000ms 134MiB

Matrix Multiplication

Matrix Multiplication

Write a program which reads a n×mn \times m matrix AA and a m×lm \times l matrix BB, and prints their product, a n×ln \times l matrix CC. An element of matrix CC is obtained by the following formula:

\[ c_{ij} = \sum_{k=1}^m a_{ik}b_{kj} \]

where aija_{ij}, bijb_{ij} and cijc_{ij} are elements of AA, BB and CC respectively.

Note

解説

Constraints

  • 1n,m,l1001 \leq n, m, l \leq 100
  • 0aij,bij100000 \leq a_{ij}, b_{ij} \leq 10000

Input

In the first line, three integers nn, mm and ll are given separated by space characters

In the following lines, the n×mn \times m matrix AA and the m×lm \times l matrix BB are given.

Output

Print elements of the n×ln \times l matrix CC (cijc_{ij}). Print a single space character between adjacent elements.

Example

Input

3 2 3 1 2 0 3 4 5 1 2 1 0 3 2

Output

1 8 5 0 9 6 4 23 14

inputFormat

Input

In the first line, three integers nn, mm and ll are given separated by space characters

In the following lines, the n×mn \times m matrix AA and the m×lm \times l matrix BB are given.

outputFormat

Output

Print elements of the n×ln \times l matrix CC (cijc_{ij}). Print a single space character between adjacent elements.

Example

Input

3 2 3 1 2 0 3 4 5 1 2 1 0 3 2

Output

1 8 5 0 9 6 4 23 14

样例

3 2 3
1 2
0 3
4 5
1 2 1
0 3 2
1 8 5

0 9 6 4 23 14

</p>