#include <bits/stdc++.h>
using namespace std;
vector<int> g[1000110];
int main() {
  int i, j, k, last, kol = 0;
  cin >> k;
  if (k % 2 == 1) {
    for (i = 2; i <= k; i++) g[1].push_back(i), kol++;
    for (i = 2; i <= k; i++)
      for (j = k + 1; j < 2 * k; j++) g[i].push_back(j), kol++;
    last = 2 * k - 1;
    for (i = k + 1; i < 2 * k; i += 2) g[i].push_back(i + 1), kol++;
    last = 2 * k - 1;
    cout << "YES\n";
    cout << 2 * last << ' ' << 1 + kol * 2 << "\n";
    cout << "1 " << last + 1 << "\n";
    for (i = 1; i <= last; i++)
      for (auto cur : g[i]) {
        cout << i << ' ' << cur << "\n";
      }
    for (i = 1; i <= last; i++)
      for (auto cur : g[i]) {
        cout << i + last << ' ' << cur + last << "\n";
      }
  } else {
    cout << "NO";
  }
}
