#include <bits/stdc++.h>
using namespace std;
long long po(long long n, long long exp) {
  long long prod = 1;
  for (long long i = 0; i < exp; i++) prod *= n;
  return prod;
}
signed main() {
  ios_base::sync_with_stdio(0);
  long long TESTS = 1;
  while (TESTS--) {
    long long n;
    cin >> n;
    if (n % 2 == 0) {
      while (1) {
      }
    }
    if (n == 1 || n % 2 == 0) {
      cout << "No";
      return 0;
      ;
    }
    cout << "Yes" << '\n';
    long long r = 2;
    while (r <= n) {
      cout << r << " " << r + 1 << '\n';
      cout << r << " " << 1 << '\n';
      cout << 1 << " " << n + r + 1 << '\n';
      cout << n + r << " " << n + r + 1 << '\n';
      r += 2;
    }
    cout << n + 1 << " " << 3;
  }
}
