#include using namespace std; int main(){ int N,sum=0; int W[100]; bool dp[100][5001] = {}; int i,j; cin >> N; for(i=0;i> W[i]; sum += W[i]; } if(sum%2 != 0){ cout << "impossible" << endl; return 0; } sum /= 2; for(i=0;i