#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[10002];
  for (int i = 1; i <= n; i++) cin >> a[i];
  int t = a[1], kq;
  for (int i = 2; i <= n; i++) {
    t = t ^ a[i];
  }
  if (t == 0) {
    cout << "Yes";
    return 0;
  }
  cout << "No";
  return 0;
}
