#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, i, j;
  cin >> k;
  if (k % 2 == 0) {
    cout << "NO";
  } else {
    cout << "YES" << endl;
    if (k == 1) {
      cout << "2 1\n1 2";
    } else {
      int n = 2 * (k + 2), nn = k + 2;
      cout << n << " ";
      vector<pair<int, int> > v;
      v.push_back(pair<int, int>(1, 2));
      v.push_back(pair<int, int>(1, 3));
      v.push_back(pair<int, int>(2, 4));
      v.push_back(pair<int, int>(2, 5));
      v.push_back(pair<int, int>(3, 4));
      v.push_back(pair<int, int>(3, 5));
      v.push_back(pair<int, int>(4, 5));
      if (k > 3) {
        for (i = 6; i <= k + 2; i += 2) {
          for (j = 1; j < i; j++) {
            v.push_back(pair<int, int>(i, j));
            v.push_back(pair<int, int>(i + 1, j));
          }
        }
      }
      int x = v.size();
      for (i = 0; i < x; i++) {
        v.push_back(pair<int, int>(v[i].first + nn, v[i].second + nn));
      }
      v.push_back(pair<int, int>(1, k + 3));
      cout << v.size() << endl;
      for (i = 0; i < v.size(); i++)
        cout << v[i].first << " " << v[i].second << endl;
    }
  }
  return 0;
}
