#include <bits/stdc++.h>
using namespace std;
int n;
vector<pair<int, int> > edge;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  if (!(n % 2)) {
    cout << "NO";
    return 0;
  }
  if (n == 1) {
    cout << "YES" << endl << "2 1" << endl << "2 1";
    return 0;
  }
  for (int i = 2; i <= n; i++) {
    edge.push_back(make_pair(1, i));
  }
  for (int i = 2; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) {
      if (!(i % 2) && j == i + 1) continue;
      edge.push_back(make_pair(i, j));
    }
    edge.push_back(make_pair(i, n + 1));
    edge.push_back(make_pair(i, n + 2));
  }
  edge.push_back(make_pair(n + 1, n + 2));
  cout << "YES" << endl << 2 * n + 4 << " " << edge.size() * 2 + 1 << endl;
  cout << 1 << " " << n + 3 << endl;
  for (int i = 0; i < edge.size(); i++) {
    cout << edge[i].first << " " << edge[i].second << endl;
  }
  for (int i = 0; i < edge.size(); i++) {
    cout << (edge[i].first + n + 2) << " " << (edge[i].second + n + 2) << endl;
  }
  return 0;
}
