#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, flag, sum, sig;
  cin >> n;
  vector<int> an(n);
  for (int i = 0; i < (n); i++) {
    cin >> an.at(i);
  }
  flag = 0;
  sig = 1;
  while (sig > 0) {
    sum = 0;
    sig = 0;
    for (int k = 0; k < (n); k++) {
      sum += an.at(k) % 2;
      an.at(k) /= 2;
      sig += an.at(k);
    }
    if (sum % 2 == 1) {
      flag = 1;
      break;
    }
  }
  if (flag == 0) {
    cout << "Yes" << endl;
  } else if (flag == 1) {
    cout << "No" << endl;
  }
  return 0;
}
