Sum of matrices#9536

Sum of matrices

1 second
128 megabytes
Very easy

Given two matrices and . Find their sum C = A + B.

\begin{pmatrix} 3 & 4 & 5 & 6\\ 1 & 2 & 3 & 4\\ 7 & 6 & 5 & 4\\ \end{pmatrix} + \begin{pmatrix} 0 & 0 & -3 & -2\\ -1 & 3 & 4 & 5\\ 5 & 6 & 1 & 2\\ \end{pmatrix} = \begin{pmatrix} 3 & 4 & 2 & 4\\ 0 & 5 & 7 & 9\\ 12 & 12 & 6 & 6\\ \end{pmatrix}

Input

The first line contains the dimensions of the matrices — two integers and m~(1 \le n, m \le 100).

Then follow lines with integers each, describing matrix . After that comes an empty line, followed by matrix given in the same format.

Output

Print matrix : lines with integers.

Examples

Example 1

Loading
Loading