Print the given N by M binary picture mirrored left to right.
Easy1MatrixImplementationNo attempts yetTime limit1sMemory limit32 MBHodori, a first-year student at Korea University, walked past Anam Station and met a street vendor selling fish-shaped buns.
"Hi, hi, hi there, sir! Two fish buns, please."
"You said hi three times, so three fish buns!"
Hodori paid for two buns, got three, and was in a good mood. He pulled one out and took a bite, but it was so hot that he dropped it.

The bun landed mirrored left to right. Given the shape of the bun before the bite, print the shape it has once it lands.
The first line holds two integers N and M separated by a space (0≤N≤10, 0≤M≤10).
Each of the next N lines holds the shape of the bun. A line is a string of M characters, where 0 is empty space and 1 is part of the bun. When M is 0, each of those lines is empty.
Print the bun mirrored left to right, on N lines. When N is 0, print nothing.
Reverse each line before printing it. Column 1 of row 1 in the input becomes column M of row 1 in the output, column 2 of row 1 becomes column M−1, and by the same rule column M of row N becomes column 1 of row N.