n=int(input())
li=[int(i) for i in input().split()]
count=0
if li[0]<li[1]:
    p=[x for x in li if x>=li[0] and x>=li[1]]
    print(len(p)+1)
else:
    p=[x for x in li if x>=li[0] and x>=li[1]]
    print(len(p))