n = int(input()) r = [0] * n for i in range(n): r[i] = int(input()) k = r[0] rank = 1 for i in r: if i > k: rank += 1 print(rank)