#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
int n;
int num[100010];
int main() {
  while (~scanf("%d", &n)) {
    if (n == 1) {
      printf("YES\n2 1\n1 2\n");
      continue;
    }
    if (n & 1) {
      printf("YES\n");
      int m = (n + 2), t = m * n;
      printf("%d %d\n", 2 * m, t);
      int x = (m * n - 1) / 2;
      for (int i = 1; x; i++) {
        for (int j = 1; j <= m && x; j++) {
          int y = j + i;
          if (y > m) {
            y = y - m;
          }
          printf("%d %d\n", j, y);
          x--;
        }
      }
      x = (m * n - 1) / 2;
      for (int i = 1; x; i++) {
        for (int j = 1; j <= m && x; j++) {
          int y = j + i;
          if (y > m) {
            y = y - m;
          }
          printf("%d %d\n", j + m, y + m);
          x--;
        }
      }
      printf("%d %d\n", m, 2 * m);
    } else {
      printf("NO\n");
    }
  }
}
