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