#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) cin >> a[i];
  int tmp = 0;
  for (int i = 0; i < N; i++) tmp = tmp ^ a[i];
  if (!tmp)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
