#include using namespace std; #define REP(i,n) for(int i=0;i<(n);i++) #define ALL(v) v.begin(),v.end() using ll=long long; int pw(ll n,int k){ assert(k>=0); int res=1; while(k){ if(k&1)res*=n; n*=n; k>>=1; } return res; } int main(){ int n;cin>>n; vector v(n); REP(i,n)cin>>v[i]; int L=pw(3,n); REP(bit,L){ vector w(3,0); int tmp=bit; REP(i,n){ w[tmp%3]+=v[i]; tmp/=3; } if(w[0]==w[1]&&w[1]==w[2]){ cout<<"Yes"<