#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x<(to);x++) #define FORR(x,arr) for(auto& x:arr) #define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define ALL(a) (a.begin()),(a.end()) #define ZERO(a) memset(a,0,sizeof(a)) #define MINUS(a) memset(a,0xff,sizeof(a)) //------------------------------------------------------- int N; int A[151515]; map> V; vector R; void dfs(int cur,int sum) { if(R.size()==15) { V[sum]=R; return; } R.push_back(0); dfs(cur+1,sum); R.back()=A[cur]; dfs(cur+1,sum+A[cur]); R.back()=-A[cur]; dfs(cur+1,sum-A[cur]); R.pop_back(); } void dfs2(int cur,int sum) { if(R.size()==15) { if(V.count(-sum)) { vector R2=V[-sum]; int ok=0; FORR(r,R) if(r!=0) ok++; FORR(r,R2) if(r!=0) ok++; if(ok) { int i; cout<<"Yes"<>N; FOR(i,N) cin>>A[i]; dfs(0,0); dfs2(15,0); cout<<"No"<