First line contains a positive integer t (t<=50), which indicates the numbers of test cases in the input. The first line of each test case contains three positive integers m, n, p for the dimension of matrices. In the next m lines, each line contains n integers, representing the elements of matrix A. Followed by n lines, each line containing p integers, represent the elements of matrix B. All elements of A and B are integers in the range [-3000, 3000].
Case 1: m, n, p <= 10.
Case 2: m, n, p <= 50.
Case 3: m, n, p <= 100.
Case 4: m, n, p <= 500.
For each case, output an m*p matrix in m lines and each line contains p integers.
Use one space between two consecutive integers. Output a blank line after each case.