num = int(input()) ranking = 1 k_score = int(input()) ranklist = [] ranklist.append(ranking) for i in range(num - 1): another_score = int(input()) if k_score < another_score: ranking = ranking + 1 ranklist.append(ranking) for j in ranklist: print(j)