#include using namespace std; #define ll long long #define rep(i, n) for (ll i = 0; i < n; ++i) #define P pair #define Graph vector> #define fi first #define se second #define vvvvll vector>>> #define vvvll vector>> #define vvll vector> #define vll vector #define pqll priority_queue #define pqllg priority_queue, greater> constexpr ll INF = (1ll << 60); constexpr ll mod = 1000000007; // 998244353; constexpr double pi = 3.14159265358979323846; template inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } void pt_vvll(vvll v) { ll vs = v.size(), vs0 = v[0].size(); rep(i, vs) { rep(j, vs0) { cout << v[i][j]; if (j != vs0 - 1) cout << " "; else cout << "\n"; } } } void pt_vll(vll v) { ll vs = v.size(); rep(i, vs) { cout << v[i]; if (i == vs - 1) cout << "\n"; else cout << " "; } } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll N; cin >> N; vll W(N); ll sum = 0; rep(i, N) { cin >> W[i]; sum += W[i]; } if (sum % 2) { cout << "impossible\n"; return 0; } vvll dp(N + 1, vll(1e4 + 10)); dp[0][0] = 1; rep(i, N) { rep(j, 1e4 + 10) { if (dp[i][j]) { dp[i + 1][j + W[i]] = 1; } } } bool ans = false; rep(i, N) rep(j, 1e4 + 10) { if (dp[i][j] && j == sum / 2) { ans = true; break; } } if (ans) cout << "possible\n"; else cout << "impossible\n"; return 0; }