#include "stdio.h"
int main()
{
int a[10];
for (int i = 0; i < 10; ++i){
scanf("%d", &a[i]);
}
int maxi = 0;
int max = a[0];
for (int i = 1; i < 10; ++i){
if (max < a[i]){
max = a[i];
maxi = i;
}
}
printf("max[%d] = %d\n", maxi, max);
return 0;
}