#include <bits/stdc++.h>
using namespace std;
pair<int, int> eg[1111111];
int m = 0;
void add(int fi, int se) { eg[++m] = make_pair(fi, se); }
int main() {
  ios_base::sync_with_stdio(false);
  int k;
  cin >> k;
  if (k % 2 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  int cnt = 2;
  add(1, 2);
  for (int i = 1; i < k; i++) add(1, ++cnt);
  cnt += k - 1;
  for (int i = 3; i < k + 2; i++)
    for (int j = k + 2; j <= cnt; j++) add(i, j);
  for (int j = k + 2; j <= cnt; j += 2) add(j, j + 1);
  int fi = cnt + 1, se = cnt + k - 1;
  cnt += k - 1 + k - 1;
  for (int i = fi; i <= se; i++) add(2, i);
  for (int i = fi; i <= se; i++)
    for (int j = se + 1; j <= cnt; j++) add(i, j);
  for (int j = se + 1; j <= cnt; j += 2) add(j, j + 1);
  cout << cnt << " " << m << endl;
  for (int i = 1; i <= m; i++)
    cout << eg[i].first << " " << eg[i].second << '\n';
}
