N = input()
list_H = list(map(int, input().split()))

cansee = list()
for i in range(len(list_H)):
  value = list_H[i]
  
  if i == 0:
    cansee.append(i)
  else:  
    compare = [ value<v for v in list_H[:i] ]
    if compare.sum() == 0:
      cansee.append(i)
      
print(cansee)