#include <bits/stdc++.h>
using namespace std;
int a[100010];
int main() {
  int k;
  while (~scanf("%d", &k)) {
    if (k % 2 == 0)
      printf("NO\n");
    else {
      printf("YES\n");
      if (k == 1) {
        printf("2 1\n1 2\n");
        continue;
      } else {
        int N = (k + 2) * 2;
        int M = k * (k + 2);
        printf("%d %d\n", N, M);
        memset(a, 0, sizeof(a));
        int nn = k + 2;
        int mm = (M - 1) / 2 - nn;
        for (int i = 2; i <= k; i++) {
          printf("%d %d\n", 1, i);
          printf("%d %d\n", 1 + nn, i + nn);
          printf("%d %d\n", k + 1, i);
          printf("%d %d\n", k + 1 + nn, i + nn);
          printf("%d %d\n", k + 2, i);
          printf("%d %d\n", k + 2 + nn, i + nn);
        }
        for (int i = 2; i <= k; i++) {
          int pos;
          if (i % 2)
            pos = i + 1;
          else
            pos = i + 2;
          while (pos <= k) {
            printf("%d %d\n", i, pos);
            printf("%d %d\n", i + nn, pos + nn);
            pos++;
          }
        }
        printf("%d %d\n", 1, 1 + nn);
        printf("%d %d\n", k + 1, k + 2);
        printf("%d %d\n", k + 1 + nn, k + 2 + nn);
      }
    }
  }
  return 0;
}
