#include <stdio.h>
int main(int argc, char** argv) {
int a[3][4],i,j,temp,b,c;
for(i = 0; i<3; i++){
for(j = 0; j<4; j++){
scanf("%d",&a[i][j]);
}
}
temp = a[0][0];
for(i = 0; i<3; i++){
for(j = 0; j<4; j++){
if(temp < a[i][j]){
temp = a[i][j];
b = i;
c = j;
}
}
}
for(i = 0; i<3; i++){
for(j = 0; j<4; j++){
printf("%5d",a[i][j]);
}
printf("\n");
}
printf(" max: %d\n group: %d\n num: %d",temp,b+1,c+1);
return 0;
}