# -*- coding:utf-8 -*-

n = int(input())
h = input().split()
flag = 0
count = 0

for i in range(1, n+1):
    print(i)
    for j in range(1, i):
        if h[i-1-j] <= h[i-1]:
            pass
        else:
            flag = 1
    if flag == 0:
        count += 1

print(count)
