#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  if ((n & 1) == 0)
    puts("NO");
  else {
    puts("YES");
    if (n == 1) {
      printf("2 1\n1 2\n");
      return 0;
    }
    int N = n + 2;
    printf("%d %d\n", N * 2, N * n);
    for (int i = 2; i <= n; i++)
      printf("%d %d\n", 1, i), printf("%d %d\n", N + 1, N + i);
    for (int i = 2; i <= n; i++)
      for (int j = i + 1; j <= n; j++)
        if ((j == i + 1 && (i & 1)) || (j != i + 1))
          printf("%d %d\n", i, j), printf("%d %d\n", N + i, N + j);
    for (int i = 2; i <= n; i++) {
      printf("%d %d\n", i, n + 1), printf("%d %d\n", i, n + 2);
      printf("%d %d\n", N + i, N + n + 1), printf("%d %d\n", N + i, N + n + 2);
    }
    printf("%d %d\n", n + 1, n + 2);
    printf("%d %d\n", N + n + 1, N + n + 2);
    printf("%d %d\n", 1, N + 1);
  }
  return 0;
}
