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