#include <bits/stdc++.h>
template <typename T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T>
inline T intceil(T a, T b) {
  return (a + (b - 1)) / b;
}
using namespace std;
const long long MOD = 1e9 + 7;
const string alphabet = "abcdefghijklmnopqrstuvwxyz";
const int dy[4] = {0, 1, 0, -1};
const int dx[4] = {1, 0, -1, 0};
static const double pi = 3.141592653589793;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> cnt(32, 0);
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    for (int j = 0; j < 32; ++j) {
      cnt[j] += (1 & a << j);
    }
  }
  for (int i = 0; i < 32; ++i) {
    if (cnt[i] % 2 == 1) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
}
