#Z15206. 矩阵加法

矩阵加法

Description

Input two n-by-m matrices A and B, and output their sum A+B.

Input Format

The first line contains two integers n and m, representing the number of rows and columns of the matrices (1 ≤ n ≤ 100, 1 ≤ m ≤ 100).
The next n lines each contain m integers, representing the elements of matrix A.
The following n lines each contain m integers, representing the elements of matrix B.
Adjacent integers are separated by a single space, and each element is between 1 and 1000.

Output Format

Output n lines, each containing m integers, representing the result of the matrix addition.
Adjacent integers should be separated by a single space.

3 3
1 2 3
1 2 3
1 2 3
1 2 3
4 5 6
7 8 9


2 4 6
5 7 9
8 10 12