#include<bits/stdc++.h>
using namespace std;
#define int long long

#ifdef LOCAL_DEBUG
  #include "LOCAL_DEBUG.hpp"
#endif

signed main(){

  int n; cin >> n;
  int res = 0;
  for(int i = 0; i < n; i++){
    int a; cin >> a;
    res ^= a;
  }
  cout << (res ? "No" : "Yes") << endl;


  return 0;
}
