import sys N=int(input()) A=list(map(int,input().split())) X=[] I=0 while I