#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:134217728")
using namespace std;
int G[1 << 10][1 << 10];
int main() {
  int k;
  cin >> k;
  if (k == 1) {
    cout << "YES" << endl;
    cout << "2 1" << endl;
    cout << "1 2" << endl;
    return 0;
  }
  if (k % 2 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  vector<int> a, b;
  for (int i = 1; i <= k - 1; ++i) {
    a.push_back(1);
    b.push_back(i + 1);
  }
  for (int i = k + 1; i <= 2 * k - 1; i++) {
    for (int j = 2; j <= k; ++j) {
      a.push_back(j);
      b.push_back(i);
    }
  }
  for (int i = k + 1; i <= 2 * k - 1; i += 2) {
    a.push_back(i);
    b.push_back(i + 1);
  }
  cout << 4 * k - 2 << " " << 2 * (int)a.size() + 1 << endl;
  for (int i = 0; i < a.size(); ++i) cout << a[i] << " " << b[i] << endl;
  for (int i = 0; i < a.size(); ++i)
    cout << 2 * k - 1 + a[i] << " " << 2 * k - 1 + b[i] << endl;
  cout << 1 << " " << 2 * k << endl;
  return 0;
}
