N=int(input()) A=list(map(int,input().split())) sum_A=sum(A) if sum_A<0: for i in range(N): A[i]=-A[i] sum_A=-sum_A if max(A)