N = int(input()) A = [int(input()) for _ in range(N)] x = A[0] j = 1 print(j) for a in A[1:]: if a > x: j += 1 print(j)