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