#include // #include // #include using namespace std; // using namespace atcoder; // using bint = boost::multiprecision::cpp_int; using ll = long long; using ull = unsigned long long; using P = pair; #define rep(i,n) for(ll i = 0;i < (ll)n;i++) #define ALL(x) (x).begin(),(x).end() #define MOD 1000000007 int main(){ int n; cin >> n; vector e(n); rep(i,n)cin >> e[i]; for(int bit = 1;bit < (1 << n);bit++){ for(int T = bit;T > 0;T = (T-1)&bit){ ll a = 0,b = 0,c = 0; rep(i,n){ if(!(bit >> i & 1))a += e[i]; else if(T >> i & 1)b += e[i]; else c += e[i]; } if(a == b && b == c){ cout << "Yes\n"; return 0; } } } cout << "No\n"; return 0; }