#include <iostream>
using namespace std;

int main() {
  int N; cin >> N;
  int exor = 0;
  for(int i = 0; i < N; i++) {
    int a; cin >> a;
    exor ^= a;
  }
  if(exor==0) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}
