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