#include<bits/stdc++.h>
using namespace std;
int main(){
int a[15]={0},m=0,n,x,d;
cin>>n;
for(m=0;m<n;m++){
cin>>a[m];
}
d=a[0];
for(m=0;m<n;m++){
if(d<a[m]){
d=a[m];
}
}
for(m=0;m<n;m++){
if(a[m]==d){
cout<<m+1<<endl;
}
}
return 0;
}
/**************************************************************
Problem: 1170
User: linmiaoling
Language: C++
Result: Accepted
Time:10 ms
Memory:2072 kb
****************************************************************/