#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; using ull = unsigned long long; using ld = long double; using pii = pair<int, int>; using pdd = pair<ld, ld>; using pll = pair<ll, ll>; using pli = pair<ll, int>; using pil = pair<int, ll>; template <typename T> using Graph = vector<vector<T>>; const int MOD = 1e9 + 7; const ld PI = acos(-1); int main() { cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; vector<int> E(N); for (int i = 0; i < N; ++i) cin >> E[i]; for (int i = 0; i < (1 << N); ++i) { for (int j = i;; j = (j - 1) & i) { vector<int> v(3); for (int k = 0; k < N; ++k) { int tmp = ((i >> k) & 1) + ((j >> k) & 1); v[tmp] += E[k]; } if (v[0] == v[1] && v[1] == v[2]) { cout << "Yes" << endl; return 0; } if (j == 0) break; } } cout << "No" << endl; return 0; }