#include <bits/stdc++.h>
using namespace std;
using namespace std;
using lint = long long int;
using pint = pair<int, int>;
using plint = pair<lint, lint>;
int main() {
  lint n, ans = 0;
  cin >> n;
  lint a[n];
  for (int i = (0), i_end_ = (n); i < i_end_; i++) {
    cin >> a[i];
  }
  for (int i = (0), i_end_ = (n); i < i_end_; i++) {
    ans ^= a[i];
  }
  if (ans == 0) {
    cout << "yes"
         << "\n";
  } else {
    cout << "no"
         << "\n";
  }
  return 0;
}
