N=int(input()) A=int(input()) B=[] for _ in range(1,N): print(sum(B)+1) x=int(input()) if x>A:B.append(1) print(sum(B)+1)