#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-10;
const int INF = 1e9;
const long long LINF = 1e15;
const int MOD = 1000000007;
const double PI = acos(-1);
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < (n); ++i) cin >> v[i];
  int x = v[0];
  for (int i = 0; i < (n - 1); ++i) x ^= v[i + 1];
  if (!x)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
