input();W=map(int,raw_input().split());S=sum(W) H=S/2;D=[0]*(H+101);D[0]=1 for w in W: i=H while i:i-=1;D[i+w]|=D[i] print"impossible"[2*D[H]*(S%2^1):]