#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N;
  cin >> N;
  vector<long long> a = {};
  long long bits[34] = {};
  for (int i = 0; i < N; i++) {
    int aaa;
    cin >> aaa;
    a.push_back(aaa);
    if (0 < (aaa & 0b0000000000000000000000000000000001)) {
      bits[0]++;
    }
    if (0 < (aaa & 0b0000000000000000000000000000000010)) {
      bits[1]++;
    }
    if (0 < (aaa & 0b0000000000000000000000000000000100)) {
      bits[2]++;
    }
    if (0 < (aaa & 0b0000000000000000000000000000001000)) {
      bits[3]++;
    }
    if (0 < (aaa & 0b0000000000000000000000000000010000)) {
      bits[4]++;
    }
    if (0 < (aaa & 0b0000000000000000000000000000100000)) {
      bits[5]++;
    }
    if (0 < (aaa & 0b0000000000000000000000000001000000)) {
      bits[6]++;
    }
    if (0 < (aaa & 0b0000000000000000000000000010000000)) {
      bits[7]++;
    }
    if (0 < (aaa & 0b0000000000000000000000000100000000)) {
      bits[8]++;
    }
    if (0 < (aaa & 0b0000000000000000000000001000000000)) {
      bits[9]++;
    }
    if (0 < (aaa & 0b0000000000000000000000010000000000)) {
      bits[10]++;
    }
    if (0 < (aaa & 0b0000000000000000000000100000000000)) {
      bits[11]++;
    }
    if (0 < (aaa & 0b0000000000000000000001000000000000)) {
      bits[12]++;
    }
    if (0 < (aaa & 0b0000000000000000000010000000000000)) {
      bits[13]++;
    }
    if (0 < (aaa & 0b0000000000000000000100000000000000)) {
      bits[14]++;
    }
    if (0 < (aaa & 0b0000000000000000001000000000000000)) {
      bits[15]++;
    }
    if (0 < (aaa & 0b0000000000000000010000000000000000)) {
      bits[16]++;
    }
    if (0 < (aaa & 0b0000000000000000100000000000000000)) {
      bits[17]++;
    }
    if (0 < (aaa & 0b0000000000000001000000000000000000)) {
      bits[18]++;
    }
    if (0 < (aaa & 0b0000000000000010000000000000000000)) {
      bits[19]++;
    }
    if (0 < (aaa & 0b0000000000000100000000000000000000)) {
      bits[20]++;
    }
    if (0 < (aaa & 0b0000000000001000000000000000000000)) {
      bits[21]++;
    }
    if (0 < (aaa & 0b0000000000010000000000000000000000)) {
      bits[22]++;
    }
    if (0 < (aaa & 0b0000000000100000000000000000000000)) {
      bits[23]++;
    }
    if (0 < (aaa & 0b0000000001000000000000000000000000)) {
      bits[24]++;
    }
    if (0 < (aaa & 0b0000000010000000000000000000000000)) {
      bits[25]++;
    }
    if (0 < (aaa & 0b0000000100000000000000000000000000)) {
      bits[26]++;
    }
    if (0 < (aaa & 0b0000001000000000000000000000000000)) {
      bits[27]++;
    }
    if (0 < (aaa & 0b0000010000000000000000000000000000)) {
      bits[28]++;
    }
    if (0 < (aaa & 0b0000100000000000000000000000000000)) {
      bits[29]++;
    }
    if (0 < (aaa & 0b0001000000000000000000000000000000)) {
      bits[30]++;
    }
    if (0 < (aaa & 0b0010000000000000000000000000000000)) {
      bits[31]++;
    }
    if (0 < (aaa & 0b0100000000000000000000000000000000)) {
      bits[32]++;
    }
    if (0 < (aaa & 0b1000000000000000000000000000000000)) {
      bits[33]++;
    }
  }
  for (int i = 0; i < N; i++) {
    if (bits[i] != 0 && bits[i] % 2 == 0) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
