#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> ab(n);
  for (int &x : ab) {
    cin >> x;
  }
  int x = ab[0];
  for (int i = 1; i < n; i++) {
    x = x ^ ab[i];
  }
  if (!x) {
    cout << "Yes" << endl;
  } else {
    cout << "No\n";
  }
  return 0;
}
