#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pi = pair<int, int>;
const ll INF = 1LL << 60;
int main() {
  int n, a, ans;
  cin >> n;
  cin >> a;
  ans = a;
  for (int i = 0; i < (int)(n - 1); i++) {
    cin >> a;
    ans ^= a;
  }
  if (!ans) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
