N = int(input()) rank = 1 score = int(input()) for _ in range(N-1): print(rank) if int(input()) > score: rank += 1 print(rank)