#include <stdio.h>
#include <string.h>
int main()
{
int n, m, x, y, z, i, j, a[22][22], t;
for( ; scanf("%d%d", &n, &m) != EOF; printf("%d %d %d\n", x, y, z))
{
if(!n && !m) break;
memset(a, 0, sizeof(a));
for(i = 1; i <= n; i++)
for(j = 1; j <= m; scanf("%d", &a[i][j++])) ;
for(i = 1, z = -500; i <= n; i++)
for(j = 1; j<= m; j++)
{
t = a[i][j + 1] + a[i][j - 1] + a[i + 1][j] + a[i - 1][j];
if(a[i][j] > 0) t = -t;
if(t > z) {x = i; y = j; z = t;}
}
}
return 0;
}