#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  map<int, int> a;
  vector<int> arrange;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    a[tmp]++;
  }
  int sum = 0;
  int shouldNum = 0;
  bool first = true;
  bool same = true;
  for (map<int, int>::iterator it = a.begin(); it != a.end(); it++) {
    pair<int, int> p = *it;
    sum = sum ^ p.first;
    if (first) {
      shouldNum = p.second;
    } else {
      if (p.second != shouldNum) {
        same = false;
      }
    }
  }
  if (same && sum == 0) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}
