A shop has two branches. Each branch keeps a table of items sold: rows are days and columns are products. The owner wants the combined table.
Add the two matrices cell by cell.
Input Format
The first line has r and c.
The next r lines are matrix A.
The next r lines are matrix B.
Output Format
Print r lines with c integers each: A + B.
Constraints
• 1 ≤ r, c ≤ 100
• -1000 ≤ value ≤ 1000
Examples
Example 1
Input
2 2
1 2
3 4
5 6
7 8
Output
6 8
10 12
Explanation 1+5, 2+6, 3+7, 4+8.
Example 2
Input
1 3
10 20 30
-10 -20 -30
Output
0 0 0
Explanation Everything cancels out to 0.
Example 3
Input
2 1
5
6
1
1
Output
6
7
Explanation Column matrices: 6 and 7.
Acceptance
—
Accepted
0
Submissions
0