#include using namespace std; typedef long long ll; template ostream& operator<<(ostream &os, vector &v){ string sep = " "; if(v.size()) os << v[0]; for(int i=1; i istream& operator>>(istream &is, vector &v){ for(int i=0; i> v[i]; return is; } #ifdef DBG void debug_(){ cout << endl; } template void debug_(T&& x, Args&&... xs){ cout << x << " "; debug_(forward(xs)...); } #define dbg(...) debug_(__VA_ARGS__) #else #define dbg(...) #endif int main() { ios_base::sync_with_stdio(false); cout << setprecision(20) << fixed; int n; cin >> n; vector e(n); cin >> e; int a = reduce(e.begin(), e.end()); for(int s=1; s<(1<>i&1) x+=e[i]; if(t>>i&1) y+=e[i]; } if(x==y&&x==a-x-y) { cout << "Yes" << endl; return 0; } } } cout << "No" << endl; return 0; }