#include <bits/stdc++.h>
using namespace std;
const int N = 100002;
int k;
void solve() {
  cout << ("YES") << endl;
  int n = 4 * (k - 1) + 2;
  int m = n * k / 2;
  cout << n << " " << m << endl;
  for (int i = (1); i <= (int)(k - 1); ++i)
    for (int j = (k); j <= (int)(2 * k - 2); ++j) printf("%d %d\n", i, j);
  for (int i = (1); i <= (int)(k - 2); ++i) printf("%d %d\n", i, i + 1), ++i;
  for (int i = (k); i <= (int)(2 * k - 2); ++i) printf("%d %d\n", 2 * k - 1, i);
  printf("%d %d\n", 2 * k - 1, 2 * k);
  for (int i = (2 * k + 1); i <= (int)(3 * k - 1); ++i)
    printf("%d %d\n", 2 * k, i);
  for (int i = (2 * k + 1); i <= (int)(3 * k - 1); ++i)
    for (int j = (3 * k); j <= (int)(4 * k - 2); ++j) printf("%d %d\n", i, j);
  for (int i = (3 * k); i <= (int)(4 * k - 3); ++i)
    printf("%d %d\n", i, i + 1), ++i;
}
int main() {
  scanf("%d", &k);
  if (k & 1)
    solve();
  else
    cout << "NO";
}
