N=int(input()) W=list(map(int,input().split())) if sum(W)%2==1: print("impossible") exit() SUM=1 for i in range(N): SUM=SUM | SUM<