#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000007;
 
int main(){
  int N;
  cin >> N;
  int A[N];
  int ans = 0;
  for(int i=0;i<N;i++){
    cin >> A[i];
    ans ^= A[i];
  }
  if(ans) cout << "No" << endl;
  else cout << "Yes" << endl; 
}