#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int res;
  cin >> res;
  while (--n) {
    int a;
    cin >> a;
    res ^= a;
  }
  cout << (res == 0 ? "Yes" : "No") << '\n';
  return 0;
}
