#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, i, ans = 0;
  cin >> N;
  vector<int> a(3 * N);
  for (i = 0; i < N; ++i) cin >> a[i];
  sort(a.begin(), a.begin() + N);
  for (i = 0; i <= N / 3; ++i) ans ^= a[i] ^ a[i + N / 3] ^ a[i + N / 3 * 2];
  cout << (ans ? "No" : "Yes");
  return 0;
}
