#include #include using namespace std; #include #include #include #include #include #include #include #include #include #include #include using ll = long long; using ld = long double; const ll MOD1 = 1000000007; const ll MOD2 = 998244353; const ll LIMIT1 = 200010; const ll LIMIT2 = 500010; const ll LIMIT3 = 1000010; const int INF = ((1<<30)-1); const ll LLINF = (1LL<<60); const ld EPS = (1e-14); using cv = const void; using P = pair; #define rep(i,n) for((i)=0;(i)<(n);(i)++) #define per(i,n) for((i)=(n)-1;(i)>=0;(i)--) #define ALL(a) (a).begin(),(a).end() #define ALL2(a, n) (a),(a)+(n) template T max(T a,C b){ return std::max(a, (T)b); } template T min(T a,C b){ return std::min(a, (T)b); } template bool chmax(T &a,const C b){ if(a<(T)b){ a=(T)b;return true; } return false; } template bool chmin(T &a,const C b){ if((T)b char gl(const T a,const C b){ T bb = (T)b; if(abb) return '>'; else return '='; } int dx[8]={1,0,-1,0,1,-1,-1,1},dy[8]={0,1,0,-1,1,1,-1,-1}; ll modpow(ll a, ll n, ll mod) { ll res = 1; while (n > 0) { if (n & 1){ res *= a; if(mod>=1) res %= mod; } a *= a; if(mod>=1) a %= mod; n >>= 1; } return res; } void initialize(){ } ll dfs(vector &e, ll i,ll a,ll b,ll c){ if(i==e.size()){ if(a==b && b==c) return 1; else return 0; } return dfs(e,i+1,a+e[i],b,c)+dfs(e,i+1,a,b+e[i],c)+dfs(e,i+1,a,b,c+e[i]); } int main(void){ initialize(); ll n,m,i,j,k,result=0; string s; cin >> n; vector e(n); rep(i,n) cin >> e[i]; result = dfs(e,0,0,0,0); cout << Yes(result>=1) << endl; return 0; }