#include <iostream>
#include <string>
using namespace std;

int main()
{
    int m, n;
    int x, y;
    long Max = 0;
    int score;
    while (cin >> m >> n)
    {
    
        for (int i = 1; i <= m; i++)
        {
            for (int j = 1; j <= n; j++)
            {    
                cin >> score;
                if (i == 1 && j == 1)
                {
                    Max = abs(score);
                }
                
                if (abs(score) > abs(Max))
                {
                    Max = score;
                    x = i;
                    y = j;
                }
            }
        }
        cout << x << " " << y << " " << Max << endl;
    }
}