#include <bits/stdc++.h>
int main() {
  int k;
  scanf("%d", &k);
  if (k % 2 == 0) {
    printf("NO\n");
    return 0;
  }
  printf("YES\n");
  if (k == 1) {
    printf("2 1\n1 2\n");
    return 0;
  }
  printf("%d %d\n", k * 2 + 4, k * (k + 2));
  for (int i = 2; i <= k; i++) {
    printf("1 %d\n", i);
    printf("%d %d\n", i, k + 1);
    printf("%d %d\n", i, k + 2);
  }
  for (int i = 2; i <= k; i += 2) {
    for (int j = i + 2; j <= k; j++) {
      printf("%d %d\n", i, j);
      printf("%d %d\n", i + 1, j);
    }
  }
  printf("%d %d\n", k + 1, k + 2);
  for (int i = 2; i <= k; i++) {
    printf("%d %d\n", k + 3, i + k + 2);
    printf("%d %d\n", i + k + 2, k + 1 + k + 2);
    printf("%d %d\n", i + k + 2, k + 2 + k + 2);
  }
  for (int i = 2; i <= k; i += 2) {
    for (int j = i + 2; j <= k; j++) {
      printf("%d %d\n", i + k + 2, j + k + 2);
      printf("%d %d\n", i + 1 + k + 2, j + k + 2);
    }
  }
  printf("%d %d\n", k + 1 + k + 2, k + 2 + k + 2);
  printf("%d %d\n", 1, k + 3);
  return 0;
}
