#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int p = 0;
  for (int i = 0; i <= N - 1; ++i) {
    int a;
    cin >> a;
    p ^= a;
  }
  if (p == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
