#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define all(c) (c).begin(), (c).end() #define rep(i,n) for(int i=0;i<(n);i++) #define pb(e) push_back(e) #define mp(a, b) make_pair(a, b) #define fr first #define sc second const int INF=100000000; int dx[4]={1,0,-1,0}; int dy[4]={0,1,0,-1}; using namespace std; typedef pair P; typedef long long ll; int N; int W[102]; int dp[102][102]; int dfs(int idx,int s,int m) { if(s==m) return true; if(idx==N) return false; if(s>m) return false; if(dp[idx][s]!=-1) return dp[idx][s]; bool ret = false; ret |= dfs(idx+1,s,m); ret |= dfs(idx+1,s+W[idx],m); return dp[idx][s]=ret; } int main() { cin>>N; rep(i,N) cin>>W[i]; int s = 0; rep(i,N) s+=W[i]; if(s%2==1) { cout<<"impossible"<