#include using namespace std; using ll = long long; template using Pa = pair; template using vec = vector; template using vvec = vector>; int main(){ cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; vec A(N); int ma = 150000; vec cnt(ma+1); for(int i=0;i> A[i]; cnt[A[i]]++; } int val = -1; for(int i=1;i<=ma;i++) if(cnt[i]>=2){ val = i; break; } if(val!=-1){ int c = 2; cout << "Yes\n"; for(int i=0;i B; for(int i=0;i> mp; int n = B.size(); for(int S=0;S<(1<>i&1) sum += B[i]; } mp[sum].push_back(S); } bool ok = false; vec ans(N); for(auto& x:mp) if(x.second.size()>=2){ ok = true; vec v = x.second; int S = v[0],T = v[1]; int U = S^T; for(int i=0;i>i&1) && (U>>i&1)) ans[i] = 1; if((T>>i&1) && (U>>i&1)) ans[i] = -1; } break; } if(!ok) cout << "No\n"; else{ cout << "Yes\n"; for(int i=0;i