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