#include <bits/stdc++.h>
using namespace std;
int k;
int adj[210][210];
void change(int i, int j, int v) {
  adj[j][i] += v;
  adj[i][j] += v;
}
void buildClique(int l, int r) {
  for (int i = l; i <= r; i++)
    for (int j = i + 1; j <= r; j++) change(i, j, 1);
}
int main() {
  scanf("%d", &k);
  if (k % 2 == 0) {
    printf("NO\n");
    return 0;
  }
  printf("YES\n");
  if (k == 1) {
    printf("2 1\n");
    printf("2 1\n");
    return 0;
  }
  int N = 2 * k + 4;
  printf("%d %d\n", N, k * (k + 2));
  buildClique(1, k + 1);
  buildClique(k + 4, N);
  change(k + 2, k + 3, 1);
  for (int i = 1; i < k - 1; i += 2) {
    change(i, i + 1, -1);
    change(i, k + 2, 1);
    change(i + 1, k + 2, 1);
  }
  for (int i = k + 4; i < 2 * k + 2; i += 2) {
    change(i, i + 1, -1);
    change(i, k + 3, 1);
    change(i + 1, k + 3, 1);
  }
  for (int i = 1; i <= N; i++)
    for (int j = i + 1; j <= N; j++)
      if (adj[i][j] == 1) printf("%d %d\n", i, j);
}
