#include <bits/stdc++.h>

using namespace std;

int main(){
    int n;
    cin >> n;
    vector<int> E(n);
    for (auto &e: E)
        cin >> e;

    for (int trits = 0; trits < int(round(pow(3, n))); trits++){
        vector<int> S(3);
        auto t = trits;
        for (int i = 0; i < n; i++){
            S[t % 3] += E[i];
            t /= 3;
        }
        if (S[0] == S[1] and S[1] == S[2]){
            puts("Yes");
            return 0;
        }
    }

    puts("No");
}