#include "bits/stdc++.h" using namespace std; int sum; int x; vector w; int solve(int n, int total) { if (total==sum) return 1; else if (n > x+1) return 0; else if (total > sum) return 0; else if (solve(n+1, total + w[n])==1) return 1; else if (solve(n+1, total) == 1) return 1; else return 0; } int main() { int x; sum = 0; cin>>x; for(int i=0; i> a; sum += a; w.push_back(a); } if (sum%2==1){ cout<<"impossible"<