#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2>
inline void chmin(T1 &a, T2 b) {
  if (a > b) a = b;
}
template <typename T1, typename T2>
inline void chmax(T1 &a, T2 b) {
  if (a < b) a = b;
}
signed main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int n;
  cin >> n;
  long long res = 0;
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    res = (res ^ a);
  }
  if (res == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
