#include using namespace std; int main() { int n; cin>>n; vector w(n); int sum=0; for(int i=0; i>w[i]; sum+=w[i]; } if(sum%2){ cout << "impossible" << endl; return 0; } vector> dp(n+1, vector(sum+1)); dp[0][0]=1; for(int i=0; i