#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 5;
const long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long k;
  cin >> k;
  if (k % 2 == 0) return cout << "NO", 0;
  cout << "YES\n"
       << 4 * k - 2 << " " << k * (2 * k - 1) << "\n"
       << 1 << " " << 2 * k << "\n";
  for (long long i = 2; i <= k; i++) cout << 1 << " " << i << "\n";
  for (long long i = 2; i <= k; i++)
    for (long long j = k + 1; j <= 2 * k - 1; j++)
      cout << i << " " << j << "\n";
  for (long long i = 2 * k + 1; i < 3 * k; i++)
    cout << 2 * k << " " << i << "\n";
  for (long long i = 2 * k + 1; i < 3 * k; i++)
    for (long long j = 3 * k; j <= 4 * k - 2; j++)
      cout << i << " " << j << "\n";
  for (long long i = k + 1; i <= 2 * k - 1; i += 2)
    cout << i << " " << i + 1 << "\n";
  for (long long i = 3 * k; i <= 4 * k - 2; i += 2)
    cout << i << " " << i + 1 << "\n";
}
