#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  map<int, int> m;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int sum = 0;
  for (int i = 0; i < n; i++) {
    if (m[a[i]] == 0) sum ^= a[i];
    m[a[i]]++;
  }
  if (sum == 0) {
    if (n == 3) {
      cout << "Yes" << endl;
      return 0;
    } else {
      for (auto i = m.begin(); i != m.end(); ++i) {
        if (i->second % 2 != 0) {
          cout << "No" << endl;
          return 0;
        }
      }
      cout << "Yes" << endl;
    }
  } else
    cout << "No" << endl;
  return 0;
}
