# include # include #include # include #include #include #include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include using namespace std; using LL = long long; using ULL = unsigned long long; constexpr long long MOD = 1000000000 + 7; constexpr long long INF = std::numeric_limits::max(); const double PI = acos(-1); #define fir first #define sec second typedef pair Pll; typedef pair> Ppll; typedef pair>> Pbll; typedef pair>> Pvll; typedef pair Vec2; struct Tll { LL first, second, third; }; typedef pair Ptll; #define rep(i,rept) for(LL i=0;i=0;i--) LL h, w, n, m, k, s, t, q, sum, last, ans, cnt,a[100000],dp[100][100000]; struct Edge { LL to, cost,mon; }; string str; bool f = 0; void YN(bool f) { if (f) cout << "YES" << endl; else cout << "NO" << endl; } void yn(bool f) { if (f) cout << "Yes" << endl; else cout << "No" << endl; } vectorvec[100000]; int main() { cin >> n; rep(i, n) { cin >> a[i]; sum += a[i]; } if (sum % 2 == 1) { cout << "impossible" << endl; return 0; } sum /= 2; dp[0][0] = 1; rep(i,n) rep(j, sum+1) { dp[i + 1][j + a[i]] = (dp[i + 1][j + a[i]] || dp[i][j]); dp[i + 1][j] = (dp[i + 1][j] || dp[i][j]); } cout << (dp[n][sum] == 1 ? "possible" : "impossible") << endl; return 0; }