from sys import stdin, stdout input = lambda: stdin.readline().rstrip() write = stdout.write def main(): N = int(input()) A = list(map(int, stdin.read().splitlines())) rank = 1 for ai in A: if A[0] < ai: rank += 1 write(str(rank) + '\n') main()