#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007, INF = (1LL << 60);
int main() {
  cin.tie(0);
  cout.tie(0);
  ios::sync_with_stdio(false);
  long long n;
  cin >> n;
  long long x[n];
  long long a = 0;
  for (int i = 0; i < n; i++) {
    cin >> x[i];
    a ^= x[i];
  }
  bool maki = true;
  if (a == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
