#include<stdio.h>
int main()
{
int n,m;
int array[n][m];
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
scanf("%d", &array
[i
][j
]); }
}
for(int i=0; i<n; i++){
for(int j=m-1; j >= 0; j--){
}
}
}
I2luY2x1ZGU8c3RkaW8uaD4KCmludCBtYWluKCkKewogICAgaW50IG4sbTsKICAgIHNjYW5mKCIlZCAlZCIsICZuLCAmbSk7CiAgICBpbnQgYXJyYXlbbl1bbV07CgogICAgZm9yKGludCBpPTA7IGk8bjsgaSsrKXsKICAgICAgICBmb3IoaW50IGo9MDsgajxtOyBqKyspewogICAgICAgICAgICBzY2FuZigiJWQiLCAmYXJyYXlbaV1bal0pOwogICAgICAgIH0KICAgIH0KICAgIHByaW50ZigiT3V0cHV0OlxuIik7CiAgICBmb3IoaW50IGk9MDsgaTxuOyBpKyspewogICAgICAgIGZvcihpbnQgaj1tLTE7IGogPj0gMDsgai0tKXsKICAgICAgICAgICAgcHJpbnRmKCIlZCAiLCBhcnJheVtpXVtqXSk7CiAgICAgICAgfQogICAgICAgIHByaW50ZigiXG4iKTsKICAgIH0KfQoK