#include <bits/stdc++.h>
using namespace std;
bool a[120][120];
int main() {
  long long int k;
  cin >> k;
  if (k % 2 == 0) {
    printf("NO\n");
  } else if (k == 1) {
    printf("YES\n");
    printf("2 1\n");
    printf("1 2\n");
  } else {
    for (long long int i = 0; i <= k + 2; ++i) {
      for (long long int j = 0; j <= k + 2; ++j) a[i][j] = false;
    }
    printf("YES\n");
    cout << 2 * k + 4 << " " << k * (k + 2) << endl;
    cout << 1 << " " << k + 3 << endl;
    for (long long int i = 2; i <= k + 2; ++i) {
      for (long long int j = 2; j <= k + 2; ++j) {
        if (i != j) a[i][j] = true;
      }
    }
    for (long long int i = 2; i < k; i += 2) {
      a[i][i + 1] = false;
      a[i + 1][i] = false;
    }
    for (long long int i = 2; i <= k; ++i) {
      a[1][i] = true;
      a[i][1] = true;
    }
    for (long long int i = 1; i <= k + 2; ++i) {
      for (long long int j = i + 1; j <= k + 2; ++j) {
        if (a[i][j]) {
          cout << i << " " << j << endl;
          cout << i + k + 2 << " " << j + k + 2 << endl;
        }
      }
    }
  }
  return 0;
}
