input() W=sorted(map(int,input().split())) R={} for x in W:S={R[k]+x:R[k]+x for k in R};R[x]=x;R.update(S) print('impossible'[(sum(W)/2 in R)*2:])