#include <bits/stdc++.h>
using namespace std;
int m, k, d;
void print(int a, int b) {
  printf("%d %d\n", a, b);
  a += d, b += d;
  printf("%d %d\n", a, b);
}
int main() {
  cin >> k;
  if (k % 2 == 0) {
    cout << "NO";
    return 0;
  }
  cout << "YES" << endl;
  d = 4 * k - 2, m = (k * d) / 2;
  cout << d << " " << m << endl;
  d /= 2;
  cout << 1 << " " << 1 + d << endl;
  for (int i = 2; i <= k; i++) print(1, i);
  for (int i = 2; i <= k; i++)
    for (int j = k + 1; j <= 2 * k - 1; j++) print(i, j);
  for (int i = 0; i < (k / 2); i++) print(k + 1 + 2 * i, k + 2 + 2 * i);
  return 0;
}
