#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using piii = pair<pii, pii>;
const ll dx[4] = {0, 1, 0, -1};
const ll dy[4] = {-1, 0, 1, 0};
const int INF = 1e9 + 7;
int gcd(int x, int y) {
  if (x < y) swap(x, y);
  if (y == 0) return x;
  return gcd(y, x % y);
}
void mul(ll a, ll b) { a = a * b % INF; }
double mysqrt(double x) {
  double l = 0, r = x;
  for (int i = 0; i < 64; ++i) {
    double m = (l + r) / 2.0;
    if (m * m < x)
      l = m;
    else
      r = m;
  }
  return l;
}
int main() {
  int n;
  cin >> n;
  int a[100100];
  ll ans = 0;
  ll ans2 = 0;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    ans += a[i];
    int key = a[i] * 2;
    ans2 = ans2 ^ key;
  }
  if (ans == ans2) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
