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