#include using namespace std; using ll = long long int; using ld = long double; const ll MAX = 5000000000000000000; const ld PI = 3.14159265358979; const ll MOD = 0;//2024948111; random_device rd; mt19937 mt(rd()); ld dotorad(ld K){return PI * K / 180.0;} ld radtodo(ld K){return K * 180.0 / PI;} int main(){ ll N; cin >> N; vector A(N); for(ll i = 0;i < N;i++) cin >> A[i]; ll p = 1; for(ll i = 0;i < N;i++) p *= 3; for(ll bit = 0;bit < p;bit++){ ll b = bit; ll x = 0,y = 0,z = 0; for(ll i = 0;i < N;i++){ if(b % 3 == 0) x += A[i]; if(b % 3 == 1) y += A[i]; if(b % 3 == 2) z += A[i]; b /= 3; } if(x == y && y == z){ cout << "Yes" << endl; return 0; } } cout << "No" << endl; }