#include #include #include #include #include #include #include #include #include #include #include using namespace std; const constexpr int INF = 1e9; typedef std::pair P; int L, N, sum; vector v; int dist[10001]; bool dp[10000+10]; void solve(){ for(int i=0; i> a; v.push_back(a); sum += a; } if(sum%2!=0){ cout << "impossible" << endl; return ; } for(int i=0; i<10010; ++i) dp[i]=false; dp[0]=true; dp[sum]=true; for(int i=sum/2; i>=0; --i){ for(int j=0; j0){ dp[i-v[j]] |= dp[i]; } } } if(dp[sum/2]) cout << "possible" << endl; else cout << "impossible" << endl; } int main() { cin >> N; solve(); return 0; }