#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000;
int main() {
  int n, m, k;
  scanf("%d", &k);
  if (!(k & 1)) {
    printf("NO\n");
    return 0;
  }
  n = 4 * k - 2;
  m = k * n / 2;
  printf("YES\n");
  printf("%d %d\n", n, m);
  printf("%d %d\n", 1, n);
  for (int i = 1; i < k; i++) {
    printf("%d %d\n", 1, i + 1);
    printf("%d %d\n", n, n - i);
  }
  for (int i = 2; i <= k; i++) {
    for (int j = 1; j < k; j++) {
      printf("%d %d\n", i, j + k);
    }
  }
  for (int i = n - 1; i >= n - k + 1; i--) {
    for (int j = 1; j < k; j++) {
      printf("%d %d\n", i, n - k + 1 - j);
    }
  }
  for (int i = k + 1; i < k + k; i += 2) printf("%d %d\n", i, i + 1);
  for (int i = n - k; i > n - k - k + 1; i -= 2) printf("%d %d\n", i, i - 1);
  return 0;
}
