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