def split_returner(chardata):
        chardata = str(chardata).split(" ")
        for i in range(0,len(chardata)):
            chardata[i] = int(chardata[i])
        return chardata
        
higher = input()
ab = split_returner(str(input()))
result = 1
for i in range(1,len(ab)):
    if ab[i] >= ab[0] and ab[i] >= ab[i-1]:
        for k in range(1,i-1):
            if ab[i] < ab[k]:
                result -= 1
        result+= 1
print(result)