w[9999],j,s;main(t){for(;~scanf("%d",&t);)for(s-=t*j,j=1e4;j--;w[j+t]+=w[j]);j=!puts("impossible"+(~s%2&&w[s/2])*2);}