#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100005];
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int f = 0;
  int m = a[0];
  for (int i = 1; i < n; i++) {
    m = m ^ a[i];
    if (m == a[i + 1])
      f = 1;
    else {
      f = 0;
      break;
    }
  }
  if (f == 1)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
