#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long k;
  cin >> k;
  if (k & 1 ^ 1) {
    cout << "NO\n";
    return 0;
  }
  if (k == 1) {
    cout << "YES\n";
    cout << 2 << " " << 1 << '\n';
    cout << 1 << " " << 2 << '\n';
    return 0;
  }
  cout << "YES\n";
  cout << 2 + (k - 1) * 4 << " "
       << 1 + 2 * ((k - 1) + (k - 1) * (k - 1) + (k - 1) / 2) << '\n';
  cout << 1 << " " << 2 << '\n';
  vector<long long> v;
  long long cnt = 3;
  for (long long i = 1; i <= k - 1; ++i) {
    v.push_back(cnt);
    cout << 2 << " " << cnt++ << '\n';
  }
  vector<long long> v1;
  for (long long i = 1; i <= k - 1; ++i) {
    v1.push_back(cnt);
    for (auto u : v) cout << cnt << " " << u << '\n';
    cnt++;
  }
  for (long long i = 0; i < (long long)v1.size() - 1; i += 2) {
    cout << v1[i] << " " << v1[i + 1] << '\n';
  }
  v.clear();
  v1.clear();
  for (long long i = 1; i <= k - 1; ++i) {
    v.push_back(cnt);
    cout << 1 << " " << cnt++ << '\n';
  }
  for (long long i = 1; i <= k - 1; ++i) {
    v1.push_back(cnt);
    for (auto u : v) cout << cnt << " " << u << '\n';
    cnt++;
  }
  for (long long i = 0; i < (long long)v1.size() - 1; i += 2) {
    cout << v1[i] << " " << v1[i + 1] << '\n';
  }
}
