#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b, x = 0;
  cin >> n;
  bool ans = true;
  for (int i = 0; i < n; i++) {
    cin >> b;
    x ^= b;
  }
  ans = (x == 0);
  cout << (ans ? "Yes" : "No") << endl;
  return 0;
}
