N=int(input()) A=int(input()) c=1 for _ in range(1,N): print(c) if int(input())>A:c+=1 print(c)