#include <bits/stdc++.h>
int main() {
  int N;
  std::cin >> N;
  int a, tmp = 0;
  for (int i = 0; i < N; ++i) std::cin >> a;
  tmp ^= a;
  if (tmp == 0)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
