// x:0 - n-1 // y:0 - m-1 let [n, m] = readline().split(' ').map(i => Number(i)) let map = [] for(let i=0; i<n; i++) { map[i] = readline().split(' ').map(i => Number(i)) } let res = ['(0,0)'], x0 = 0, y0 = 0, to = [[0, 1], [1, 0], [0, -1], [-1, 0]] let pass =...