#include <bits/stdc++.h>
using namespace std;
int64_t MOD = 1000000007;
const long long INF = 1LL << 60;
int main() {
  int64_t N, ans = 0;
  cin >> N;
  for (int i = 0; i < (int)(N); i++) {
    int64_t k;
    cin >> k;
    ans = (ans ^ k);
  }
  if (ans == 0)
    cout << "Yes";
  else
    cout << "No";
}
