n=int(input()) L=list(map(int,input().split())) flag=1 cnt=sum(L[1:2]) for i in range(2,n+1): if cnt