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