#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int k;
  cin >> k;
  if (k % 2 == 0) {
    cout << "NO";
    return 0;
  }
  cout << "YES" << endl;
  int n, m;
  m = 4 * (k - 1) + 2;
  n = 3 * k + 2 * (k - 1) * (k - 1) - 2;
  printf("%d %d\n", m, n);
  int kp = k - 1;
  int sh = 1;
  for (int z = 0; z < 2; z++) {
    for (int i = 0; i < kp; i++) {
      for (int j = kp; j < kp + kp; j++) printf("%d %d\n", sh + i, sh + j);
    }
    for (int j = kp; j < kp + kp; j += 2) printf("%d %d\n", sh + j, sh + j + 1);
    for (int i = 0; i < kp; i++) printf("%d %d\n", sh + i, sh + kp + kp);
    sh += kp + kp + 1;
  }
  printf("%d %d", 2 * kp + 1, 4 * kp + 2);
  return 0;
}
