n=int(input())-1 a=int(input()) c=1 p=print for i in'.'*n: print(c) c+=int(input())>a print(c)