#include <iostream>

int main(int argc, char *argv[])
{
  uint32_t n, a, x;
  std::cin >> n >> a;
  for (uint32_t i=1; i<n; ++i) {
    std::cin >> x;
    a ^= x;
  }
  if (a == 0) {
    std::cout << "Yes" << std::endl;
  } else {
    std::cout << "No" << std::endl;
  }
  return 0;
}
