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

h1 = H[0]
cnt = 1
ind = 1
for i in range(2,N):
  for h in H[ind:i]:
    #print(h,H[i])
    if h <= H[i] and h1 <= H[i]:
      #h1,h,H[i]
      cnt += 1
      ind += 1
print(cnt)