#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int> > e;
int k;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> k;
  if (k == 1) {
    cout << "YES\n";
    cout << "2 1\n1 2";
    return 0;
  } else if (k % 2 == 0) {
    cout << "NO";
    return 0;
  }
  for (int i = 2; i <= k; ++i) {
    e.push_back(make_pair(i, 1));
  }
  for (int i = k + 1; i <= 2 * k - 1; ++i) {
    for (int j = 2; j <= k; ++j) {
      e.push_back(make_pair(i, j));
    }
    if (i % 2) {
      e.push_back(make_pair(i, i - 1));
    }
  }
  e.push_back(make_pair(1, 2 * k));
  for (int i = 2 * k + 1; i <= 3 * k - 1; ++i) {
    e.push_back(make_pair(i, 2 * k));
  }
  for (int i = 3 * k; i <= 4 * k - 2; ++i) {
    for (int j = 2 * k + 1; j <= 3 * k - 1; ++j) {
      e.push_back(make_pair(i, j));
    }
    if (i % 2 == 0) {
      e.push_back(make_pair(i, i - 1));
    }
  }
  cout << "YES\n";
  cout << 4 * k - 2 << " " << e.size() << "\n";
  for (vector<pair<int, int> >::iterator it = e.begin(); it != e.end(); it++)
    cout << it->first << " " << it->second << "\n";
  return 0;
}
