#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long MOD2 = 998244353;
const long long MOD3 = 1812447359;
const long long INF = 1ll << 62;
const double PI = 2 * asin(1);
void yes() { printf("yes\n"); }
void no() { printf("no\n"); }
void Yes() { printf("Yes\n"); }
void No() { printf("No\n"); }
void YES() { printf("YES\n"); }
void NO() { printf("NO\n"); }
int N;
long long A, now = 0;
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> A;
    now = now ^ A;
  }
  if (now == 0)
    Yes();
  else
    No();
  return 0;
}
