The matrix of integers a[ij]
is given, where 1 ≤ i ≤ n, 1 ≤ j ≤ m. For all i, j find
The first line contains the matrix size n, m (1 ≤ n, m ≤ 1000). Each of the next n lines contains m integers a[ij]
(1 ≤ a[ij]
≤ 1000).
Print n rows each containing m numbers S[ij]
.