#include <bits/stdc++.h>
const int N = 120;
using namespace std;
int n, k, r, a[500][500];
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cin >> n;
  if (n == 1) {
    cout << "YES\n2 1\n1 2";
    return 0;
  }
  if (n % 2 == 0) {
    cout << "NO";
    return 0;
  }
  k = n + 2;
  for (int i = 1; i <= k; ++i)
    for (int j = i + 1; j <= k; ++j) a[i][j] = 1, ++r;
  a[1][2] = 0;
  a[1][3] = 0;
  r -= 2;
  for (int i = 4; i <= k; i += 2) a[i][i + 1] = 0, --r;
  cout << "YES\n";
  cout << k + k << ' ' << r + r + 1 << "\n";
  for (int i = 1; i <= k; ++i)
    for (int j = 1; j <= k; ++j)
      if (a[i][j]) {
        cout << i << ' ' << j << "\n";
      }
  for (int i = 1; i <= k; ++i)
    for (int j = 1; j <= k; ++j)
      if (a[i][j]) {
        cout << i + k << ' ' << j + k << "\n";
      }
  cout << 1 << ' ' << k + 1;
}
