a=int(input()) ls=list(map(int,input().split())) zd=max(ls) for i in range(0,a): if ls[i]==zd: print(i+1)