#include <bits/stdc++.h>
int main(void) {
  int N;
  scanf("%d", &N);
  int A[(10000)];
  for (int i = 0; i < N; i++) {
    scanf("%d", &A[i]);
  }
  int B = 0;
  for (int i = 0; i < N; i++) {
    B ^= A[i];
  }
  if (B == 0) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}
