#include #include #include using namespace atcoder; using mint = modint998244353; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 1000000000000000001 int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; vector a(n); rep(i,n)cin>>a[i]; long long s = 0; rep(i,n){ s ^= a[i]; } if(s!=0)cout<<"No"<=30){ cout<<"Yes"< dp(8192,0); dp[0] = 1; rep(i,n){ vector ndp(8192,0); rep(j,8192){ ndp[j] += dp[j]; ndp[j] += dp[j^a[i]]; } swap(dp,ndp); } if(dp[0]==2)cout<<"No"<