#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(10);
  int n;
  cin >> n;
  vector<int> a(n);
  for (long long i = 0; i < n; i++) cin >> a[i];
  for (long long i = 0; i < n; i++) a[0] = a[0] ^ a[i];
  if (a[0] == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
