Create Matrix Multiplication

Write a program to calculate matrix multiplication

May contain negative number

Both "row" and "column" are integer

Row, Column < 10

Input
The input data will contain multiple test cases. Each test case will contain:

RowA ColA

MatrixA

RowB ColB

MatrixB

Output
MatrixC (C = A x B)

Sample Input
1 2
2 1
2 1
1
2 
2 2
1 2
5 6 
2 2
2 3
6 1
Sample Output
4
14 5
46 21