#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x, sum = 0;
  for (int i = 1; i <= n; ++i) scanf("%d", &x), sum ^= x;
  if (n == 3 && sum == 0)
    cout << "Yes\n";
  else
    cout << "No\n";
}
