n = int(input())
k = int(input())
rank = 1
print(rank)
add = 1

for x in range(n-1):
    m = int(input())
    if k < m:
        rank += 1
    print(rank)