#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int k;
  cin >> k;
  if (k == 1) {
    cout << "YES\n2 1\n1 2\n";
  } else if (k & 1) {
    cout << "YES\n";
    cout << k * 2 + 4 << ' ' << (k + 2) * k << '\n';
    for (int i = 1; i <= k - 1; i++) cout << i + 1 << ' ' << 1 << '\n';
    for (int i = 2; i <= k + 2; i++)
      for (int j = 2; j < i; j++)
        if (i > k || i != j + 1 || i % 2 == 0) cout << i << ' ' << j << '\n';
    for (int i = 1; i <= k - 1; i++)
      cout << i + k + 2 << ' ' << k * 2 + 4 << '\n';
    for (int i = k + 3; i <= k * 2 + 3; i++)
      for (int j = k + 3; j < i; j++)
        if (i > 2 * k + 1 || i != j + 1 || i % 2 == 0)
          cout << i << ' ' << j << '\n';
    cout << 1 << ' ' << k * 2 + 4 << '\n';
  } else
    cout << "NO" << '\n';
}
