#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A, ans = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> A;
    ans = ans ^ A;
  }
  if (ans == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
