N = int(input()) a = int(input()) score = 1 print(score) for i in range(N-1): b = int(input()) if a < b: score += 1 print(score) else: print(score)