#include <bits/stdc++.h>
using namespace std;
int main(){
    int i,ma=-99999999;
    cin>>i;
    int a[i];
    for(int o=0;o<i;o++){
        cin>>a[o];
        if(a[o]>ma)ma=a[o];
    }
    for(int o=0;o<i;o++){
        if(a[o]==ma)printf("%d\n",o+1);
    }
    return 0;
}
/**************************************************************
	Problem: 1170
	User: lijinkai
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2072 kb
****************************************************************/