N = int(input())
arr = input().split(" ")
 
if N == 1:
  print(1)
elif N == 2:
  if int(arr[1]) > int(arr[0]):
    print(2)
  else:
    print(1)
else:
  count = 1
  for i in range(N):
    if i == 0:
      pass
    else:
      for j in range(i):
        bool = True
        if arr[i] < arr[j]:
          bool = False
          if bool:
            count += 1
  print(count)