N = int(input()) K = int(input()) p = 1 L = [1] for _ in range(N-1): a = int(input()) if a > K: p += 1 L += [p] for i in L: print(i)