N = int(input()) a0 = int(input()) rank = 1 print(rank) for i in range(1, N): ai = int(input()) if ai > a0: rank += 1 print(rank)