A spreadsheet holds an R-by-C grid of integers. A cleanup rule fires: for every cell that currently holds the value 0, its entire row and its entire column must be set to 0.
Important: the rule is applied with respect to the original grid. A cell that becomes 0 only because of this wipe does not itself trigger further wiping. In other words, first note the set of rows and columns that contain at least one original zero, then set every cell in those rows and columns to 0.
Print the resulting grid.
Input format
Line 1: two integers R and C.
Next R lines: each contains C space-separated integers (one grid row).
Output format
R lines, each with C space-separated integers: the grid after the wipe.
Constraints
- 1 <= R, C <= 200
- -1000000000 <= each value <= 1000000000