#182 new # your code goes here N=int(input()) A=[int(i) for i in input (). split ()] B=[1]*N while i