N=int(input()) C=list(map(int,input().split())) ans=1 if min(C)<0