#include<iostream>
#include<cmath>
using namespace std;
int main(void)
{
int a[100][100];
int m, n;
while (cin >> m >> n)
{
int i, j, maxi = 0, maxj = 0;
for (i = 0; i < m; i++)
{
for (j = 0; j < n; j++)
{
cin >> a[i][j];
}
}
int max = abs(a[0][0]);
for (i = 0; i < m; i++)
{
for (j = 0; j < n; j++)
{
if (abs(a[i][j]) > max)
{
max = abs(a[i][j]);
maxi = i;
maxj = j;
}
}
}
cout << maxi + 1 << " " << maxj + 1 << " " << a[maxi][maxj] << endl;
}
return 0;
}
#include<cmath>
using namespace std;
int main(void)
{
int a[100][100];
int m, n;
while (cin >> m >> n)
{
int i, j, maxi = 0, maxj = 0;
for (i = 0; i < m; i++)
{
for (j = 0; j < n; j++)
{
cin >> a[i][j];
}
}
int max = abs(a[0][0]);
for (i = 0; i < m; i++)
{
for (j = 0; j < n; j++)
{
if (abs(a[i][j]) > max)
{
max = abs(a[i][j]);
maxi = i;
maxj = j;
}
}
}
cout << maxi + 1 << " " << maxj + 1 << " " << a[maxi][maxj] << endl;
}
return 0;
}