#include <bits/stdc++.h>
using namespace std;
int N, arr[200010];
int main() {
  cin >> N;
  int total = 0;
  for (int i = 0; i < N; i++) {
    cin >> arr[i];
    total = total ^ arr[i];
  }
  if (total == 0) {
    cout << "Yes" << '\n';
  } else {
    cout << "No" << '\n';
  }
}
