#include <bits/stdc++.h>
const long long MOD = 1000000007;
int main() {
  int n;
  scanf("%d", &n);
  int a[101010];
  for (long long i = 0; i < (long long)(n); i++) scanf("%d", a + i);
  int xorsum = a[0];
  for (long long i = 0; i < (long long)(n - 1); i++)
    xorsum = (a[i + 1] ^ xorsum);
  if (xorsum == 0)
    puts("Yes");
  else
    puts("No");
}
