#include <bits/stdc++.h>
using namespace std;
long long n;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  if (n == 1 || n % 2 == 0)
    cout << "No";
  else {
    vector<pair<long long, long long> > V = {
        {1, 2}, {2, 3}, {3, n + 1}, {n + 1, n + 2}, {n + 2, n + 3}};
    for (long long i = 4; i < n; i += 2) {
      V.push_back({i, i + 1});
      V.push_back({i + 1, 1});
      V.push_back({1, n + i});
      V.push_back({n + i, n + i + 1});
    }
    cout << "Yes\n";
    for (pair<long long, long long> P : V)
      cout << P.first << " " << P.second << "\n";
  }
}
