#include using namespace std; #define bokusunny ios::sync_with_stdio(false), cin.tie(nullptr); void solve() { int N; cin >> N; vector A(N); for (int i = 0; i < N; i++) cin >> A[i]; auto dfs = [&](auto dfs, int depth, vector &vec) -> void { if (depth == N) { if (vec[0] == vec[1] && vec[1] == vec[2]) { cout << "Yes" << endl; exit(0); } return; } for (int i = 0; i < 3; i++) { vec[i] += A[depth]; dfs(dfs, depth + 1, vec); vec[i] -= A[depth]; } }; vector init(3); dfs(dfs, 0, init); cout << "No" << endl; } int main() { bokusunny; solve(); return 0; }