n = int(input())
h = list(map(int, input().split()))
max_ = 0
cnt = 0
for i in range(n):
    if h[i] >= max_:
        cnt += 1
        max_ = h[i]
print(cnt)

1c8f7a566c84e7de865c22c62c58b4ecea27ea3a
<mask token>

<mask token>
for i in range(n):
    if h[i] >= max_:
        cnt += 1
        max_ = h[i]
print(cnt)

n = int(input())
h = list(map(int, input().split()))
max_ = 0
cnt = 0
for i in range(n):
    if h[i] >= max_:
        cnt += 1
        max_ = h[i]
print(cnt)
