#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n;
  cin >> n;
  vector<long long> a(n + 2);
  for (long long i = 1; i <= n; i++) {
    cin >> a[i];
  }
  sort(a.begin() + 1, a.end() - 1);
  a[0] = a[n];
  a[n + 1] = a[1];
  for (long long i = 0; i < n; i++) {
    cout << i << " " << (a[i] ^ a[i + 2]) << endl;
    if ((a[i] ^ a[i + 2]) != a[i + 1]) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
