# your code goes here N=int(input()) A=[int(i) for i in input (). split ()] B=[] for i in range(N): B.append(1) i=0 while i