#include using namespace std; #define REP(i,n) for (int i = 0; i < (n); ++i) template inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;} template inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;} using ll = long long; using P = pair; using Pl = pair; using veci = vector; using vecl = vector; using vecveci = vector>; using vecvecl = vector>; const int MOD = 1000000007; const double pi = acos(-1); ll gcd(ll a, ll b) {if(b == 0) return a; else return gcd(b,a%b);} ll lcm(ll a, ll b) {return a*b/gcd(a,b);} void rec(int N, veci E, ll &ans, veci unko) { if(unko.size() == N) { int A = 0, B = 0, C = 0; REP(i,N) { int t = unko[i]; if(t == 0) A += E[i]; else if(t == 1) B += E[i]; else C += E[i]; if(A == B && B == C) ans++; } } else if(unko.size() > N) return; for(int k = 0; k < 3; k++) { unko.push_back(k); rec(N,E,ans,unko); unko.pop_back(); } } int main() { int N; cin >> N; veci E(N); REP(i,N) cin >> E[i]; ll ans = 0; veci unko; rec(N,E,ans,unko); if(ans) cout << "Yes" << endl; else cout << "No" << endl; return 0; }