#include<iostream>
using namespace std;
int calculeaza_max (int a[][], int n , int m)
{ int i, j,max = 0;
for ( i = 1 ;i<= n; i++)
for ( j = 1 ;j<= m;j++)
if (max < a[i][j])
max = a[i][j];
return max;
}
int main ()
{
int i,j,n,m,a[100][100];
cin >>n>>m;
for ( i = 1 ;i<=n;i++)
for ( j = 1 ;j<=m;j++)
cin>>a[i][j];
for (i=1;i<=n;i++)
for (j=1;j<=m;j++)
{
if (a[i][j] == calcueaza_max (a,n,m))
cout <<" indice i = "<<i<<" , indice j = "<<j;
}
}