#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  if (k == 1) {
    cout << "YES\n";
    cout << "2 1\n";
    cout << "1 2\n";
    return 0;
  }
  if (k % 2 == 1) {
    cout << "YES\n";
    cout << 4 * k - 2 << " " << (2 * k - 1) * k << endl;
    for (int i = 2; i <= k; i++) {
      cout << 1 << " " << i << endl;
    }
    for (int i = k + 1; i <= 2 * k - 1; i++) {
      for (int j = 2; j <= k; j++) {
        cout << i << " " << j << endl;
      }
    }
    for (int i = k + 1; i <= 2 * k - 1; i += 2) {
      cout << i << " " << i + 1 << endl;
    }
    for (int i = 2; i <= k; i++) {
      cout << 2 * k << " " << 2 * k + i - 1 << endl;
    }
    for (int i = 3 * k; i <= 4 * k - 2; i++) {
      for (int j = 2 * k + 1; j <= 3 * k - 1; j++) {
        cout << i << " " << j << endl;
      }
    }
    for (int i = 3 * k; i <= 4 * k - 2; i += 2) {
      cout << i << " " << i + 1 << endl;
    }
    cout << 1 << " " << 2 * k << endl;
  } else {
    cout << "NO\n";
  }
}
