#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 5;
int n, d;
int main(int argc, char const **argv) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  int x = 0;
  for (int i = 0; i < n; i++) {
    cin >> d;
    x = x ^ d;
  }
  cout << ((x == 0) ? "Yes" : "No");
  return 0;
}
