#include <bits/stdc++.h>
using namespace std;
void almost_regular(int k, int starting_index) {
  int size = k + 2;
  for (int i = 1; i <= k / 2; i++) {
    for (int v = 0; v < size; v++) {
      cout << v + 1 + starting_index << " "
           << ((v + i) % (size)) + 1 + starting_index << "\n";
    }
  }
  for (int i = 1; i <= size / 2; i++)
    cout << i + 1 + starting_index << " "
         << ((i + 1 + size / 2)) + starting_index << "\n";
}
int main() {
  int k;
  cin >> k;
  if (k % 2 == 0) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  if (k == 1) {
    cout << "2 1\n"
         << "1 2\n";
    return 0;
  }
  cout << 2 * (k + 2) << " " << k * (k + 2) << "\n";
  almost_regular(k, 0);
  almost_regular(k, k + 2);
  cout << 1 << " " << k + 3;
  return 0;
}
