#include <bits/stdc++.h>
using namespace std;
int n;
vector<long long> a(100000);
int wa[100000];
int binary(int bina) {
  int ans = 0;
  for (int i = 0; bina > 0; i++) {
    ans = ans + (bina % 2) * pow(10, i);
    bina = bina / 2;
  }
  return ans;
}
void solve() {
  int ans = 0;
  for (int i = 0; i < (int)(n); i++) {
    ans ^= a[i];
  }
  if (ans == 0)
    cout << "Yes\n";
  else
    cout << "No\n";
}
int main() {
  cin >> n;
  for (int i = 0; i < (int)(n); i++) {
    cin >> a[i];
    a[i] = binary(a[i]);
  }
  solve();
  return 0;
}
