#include <iostream>

using namespace std;

int main(int argc, char* argv[])
{
  int N; cin >> N;

  unsigned int val; cin >> val;
  for (int i = 1; i < N; i++) {
    unsigned int a; cin >> a;
    val ^= a;
  }

  cout << (val != 0 ? "No" : "Yes") << endl;
  return 0;
}
