#include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; typedef long double ld; using namespace std; ll dx[] = { 0,0,1,-1 }; ll dy[] = { 1,-1,0,0 }; ll gcd(ll a, ll b) { if (a> N; ll a[1000]; ll S[1000]; bool flag = 0; ll sum=0; for (ll i = 0; i < N; ++i) { cin >> a[i]; sum+=a[i]; } S[0] = 0; for (ll i = 1; i <= N; ++i) { S[i] = S[i - 1] + a[i-1]; } for (ll i = 0; i <= N; i++) { if (sum == 2 * S[i]) flag = 1; } if (flag)cout << "possible" << endl; else cout << "impossible" << endl; }