#include <bits/stdc++.h>
using namespace std;
const int c_INF = 111111111;
const int c_mINF = -111111111;
const int c_YET = -1;
const int c_Dx[4] = {0, 0, 1, -1};
const int c_Dy[4] = {1, -1, 0, 0};
int main() {
  int N, A[100005];
  int sum[30];
  bool end = false;
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    scanf("%d", &A[i]);
    for (int j = 0; j < 31; j++) {
      sum[j] += (A[i] >> j & 1);
    }
  }
  for (int i = 0; i < 31; i++) {
    if (sum[i] % 2 != 0) {
      printf("No");
      end = true;
      break;
    }
  }
  if (!end) printf("Yes");
}
