#include <bits/stdc++.h>
int main() {
  int n;
  long long ans = 0;
  int sign = 0;
  int a[100005];
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    ans = ans ^ a[i];
  }
  if (n == 3) {
    if (ans == 0)
      printf("Yes");
    else
      printf("No");
  } else {
    for (int i = 0; i < n - 1; i++) {
      for (int j = 0; j < n - i - 1; j++) {
        if ((a[i] ^ a[j]) == ans) {
          printf("Yes");
          sign = 1;
          break;
        }
      }
      if (sign == 1) break;
    }
    if (sign == 0) printf("No");
  }
  return 0;
}
