#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=0; j<m; j++){
}
}
}
I2luY2x1ZGU8c3RkaW8uaD4KCmludCBtYWluKCkKewogICAgaW50IG4sbTsKICAgIHNjYW5mKCIlZCAlZCIsICZuLCAmbSk7CiAgICBpbnQgYXJyYXlbbl1bbV07CgogICAgZm9yKGludCBpPTA7IGk8bjsgaSsrKXsKICAgICAgICBmb3IoaW50IGo9MDsgajxtOyBqKyspewogICAgICAgICAgICBzY2FuZigiJWQiLCAmYXJyYXlbaV1bal0pOwogICAgICAgIH0KICAgIH0KICAgIHByaW50ZigiT3V0cHV0OlxuIik7CiAgICBmb3IoaW50IGk9MDsgaTxuOyBpKyspewogICAgICAgIGZvcihpbnQgaj0wOyBqPG07IGorKyl7CiAgICAgICAgICAgIHByaW50ZigiJWQgIiwgYXJyYXlbaV1bal0pOwogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9Cn0K