from itertools import accumulate N = int(input()) a0 = int(input()) gt = [1 if int(input()) > a0 else 0 for _ in range(N-1)] gt[0] += 1 ans = list(accumulate(gt)) print(1, *ans, sep='\n')