if __name__ == "__main__":
    a = int(input())
    ryokan= input().split(" ")
    total=1
    for x in range(1,a):
        flag=True
        for y in range(x):
            if int(ryokan[x])<int(ryokan[y]):
                flag=False
                break
        if flag:
            print(x)        
            total+=1
                
    print(total)