#include using namespace std; #define rep(i, j) for(int i=0; i < (int)(j); i++) #define all(v) v.begin(),v.end() template istream& operator >> (istream &is , vector &v) { for(T &a : v) is >> a; return is; } int main() { int N; cin >> N; vector W(N); cin >> W; int sum = accumulate(all(W), 0); if(sum % 2 == 0) { vector ok(sum / 2 + 1); ok[0] = true; rep(i, N) { rep(j, ok.size()) if(ok[j] and j + W[i] < ok.size()) ok[j + W[i]] = true; } if(ok.back()) { cout << "possible" << endl; return 0; } } cout << "impossible" << endl; return 0; }