#include <iostream>
#include <math.h>
using namespace std;

int main() {
	int n = 15;
	cin >> n;
	double z[n][n];
	for( int i = 0; i < n; i++)
	{
		for( int j = 0; j < n; j++)
		{
			cin >> z[i][j];
			if(z[i][j] > 0)
			{
				cout << "Index: "<< i <<" "<< j << '\n';
				return 0;
			}
		}
	}
	cout <<"Ненулевых элементов нет" <<  endl;
	return 0;
}