#include <bits/stdc++.h>
using namespace std;
int t, n;
long long a[80005];
int main() {
  int k = 0;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%lld", &a[i]), k ^= a[i];
  if (k != 0) {
    printf("No\n");
  } else {
    printf("Yes\n");
  }
}
