#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; int dp[105][10005]; int main(){ int N, w; vector W; cin >> N; rep(i,N){ cin >> w; W.push_back(w); } int sum = 0; rep(i,N) sum += W[i]; dp[0][0] = 1; rep(i,N){ rep(j,10005){ if(dp[i][j] > 0 && j+W[i]<10005){ dp[i+1][j+W[i]] = 1; } } } rep(i,100005){ if(dp[N][i]==1 && i == sum-i){ cout << "possible" << endl; return 0; } } cout << "impossible" << endl; return 0; }