#include <bits/stdc++.h>
bool vis[300][300];
int main() {
  int n;
  scanf("%d", &n);
  if (n % 2 == 0) {
    puts("NO");
    return 0;
  }
  if (n == 1) {
    puts("YES");
    puts("2 1");
    puts("1 2");
    return 0;
  }
  puts("YES");
  int m = n + 2;
  int k = (m / 2);
  printf("%d %d\n", m * 2, n * m);
  for (int i = 1; i <= m; i++)
    for (int j = i + 1; j <= m; j++) vis[i][j] = true;
  for (int i = 2; i <= k; i++) {
    vis[i][m - i] = false;
  }
  vis[1][m] = vis[1][m - 1] = false;
  for (int i = 1; i <= m; i++)
    for (int j = i + 1; j <= m; j++)
      if (vis[i][j]) {
        printf("%d %d\n", i, j);
      }
  printf("%d %d\n", 1, m + 1);
  for (int i = 1; i <= m; i++)
    for (int j = i + 1; j <= m; j++)
      if (vis[i][j]) {
        printf("%d %d\n", i + m, j + m);
      }
  return 0;
}
