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