n = int(input()) k = int(input()) r = 1 l = [1] for _ in range(n-1): if k < int(input()): r += 1 l.append(r) print('\n'.join(map(str,l)))