#include <bits/stdc++.h>
int main() {
  int n, a, ans = 0, bit[32];
  int f = 0;
  for (int i = 0; i < 32; i++) {
    bit[i] = 0;
  }
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a);
    int j = 0;
    while (a > 0) {
      bit[j] += a & 1;
      a = a >> 1;
      j++;
    }
  }
  for (int i = 0; i < 32; i++) {
    if ((bit[i] % 2) == 0 && (n - bit[i]) % 2 == 1) {
      continue;
    } else {
      f = 1;
      break;
    }
  }
  if (f == 0) {
    printf("Yes");
  } else {
    printf("No");
  }
  return 0;
}
