Reflect relative to the vertical axis of symmetry#9570

Reflect relative to the vertical axis of symmetry

1 second
64 megabytes
Medium

Given a rectangular two-dimensional array with dimensions n \times m, your task is to reflect it across the vertical axis of symmetry.

Input

The first line contains two integers, and , representing the dimensions of the array.

The following lines each contain integers, representing the elements of the array.

Output

Print the transformed array.

Examples

Example 1

Loading
Loading