#include "stdio.h"
int main()
{
    int a[3][4];
    for (int i = 0; i < 3; ++i){
        for (int j = 0; j < 4; ++i){
            scanf("%d", &a[i][j]);
        }
    }

    int maxi = 0, maxj = 0;
    int max = a[0][0];
    for (int i = 0; i < 3; ++i){
        for (int j = 0; j < 4; ++i){
            if (max < a[i][j]){
                max = a[i][j];
                maxi = i;
                maxj = j;
            }
        }
    }
    printf("max[%d,%d] = %d\n", maxi, maxj, max);
    return 0;
}