#include <bits/stdc++.h>
using namespace std;
long long n;
long long xr = 0;
long long a[100005];
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    xr = (xr ^ a[i]);
  }
  if (xr == 0) {
    cout << "yes" << endl;
    return 0;
  }
  cout << "no" << endl;
  return 0;
}
