#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  int k;
  cin >> k;
  if (k % 2 == 0)
    cout << "NO";
  else if (k == 1) {
    cout << "YES\n2 1\n2 1";
  } else {
    int n = 2 * k + 4, m = n * k / 2;
    cout << "YES\n" << n << " " << m << "\n";
    cout << "1 " << k + 3 << "\n";
    for (int i = 2; i <= k; i++) cout << "1 " << i << "\n";
    for (int i = 2; i < k; i++) {
      int j;
      (i& 1 ? j = i + 1 : j = i + 2);
      for (; j <= k; j++) cout << i << " " << j << "\n";
    }
    for (int i = 1; i <= 2; i++)
      for (int j = 2; j <= k; j++) cout << k + i << " " << j << "\n";
    cout << k + 1 << " " << k + 2 << "\n";
    for (int i = k + 4; i <= 2 * k + 2; i++) cout << k + 3 << " " << i << "\n";
    for (int i = k + 4; i < 2 * k + 2; i++) {
      int j;
      (i& 1 ? j = i + 2 : j = i + 1);
      for (; j <= 2 * k + 2; j++) cout << i << " " << j << "\n";
    }
    for (int i = 3; i <= 4; i++)
      for (int j = k + 4; j <= 2 * k + 2; j++)
        cout << 2 * k + i << " " << j << "\n";
    cout << 2 * k + 3 << " " << 2 * k + 4 << "\n";
  }
  return 0;
}
