#include <bits/stdc++.h>
using namespace std;
long long a[100005];
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  if (n == 3) {
    if ((a[0] ^ a[1] ^ a[2]) == 0)
      cout << "Yes\n";
    else
      cout << "No\n";
    return 0;
  }
  if (a[n - 1] == 0)
    cout << "Yes\n";
  else
    cout << "No\n";
  return 0;
}
