N=int(input()) A=[int(i) for i in input (). split ()] i=0 while i