Problem: An undirected graph is called k-regular, if the degrees of all its vertices are equal k. An edge of a connected graph is called a bridge, if after removing it the graph is being split into two connected components.

Build a connected undirected k-regular graph containing at least one bridge, or else state that such graph doesn't exist.

Input

The single line of the input contains integer k (1 ≤ k ≤ 100) — the required degree of the vertices of the regular graph.

Output

Print "NO" (without quotes), if such graph doesn't exist. 

Otherwise, print "YES" in the first line and the description of any suitable graph in the next lines.

The description of the made graph must start with numbers n and m — the number of vertices and edges respectively. 

Each of the next m lines must contain two integers, a and b (1 ≤ a, b ≤ n, a ≠ b), that mean that there is an edge connecting the vertices a and b. A graph shouldn't contain multiple edges and edges that lead from a vertex to itself. A graph must be connected, the degrees of all vertices of the graph must be equal k. At least one edge of the graph must be a bridge. You can print the edges of the graph in any order. You can print the ends of each edge in any order.

The constructed graph must contain at most 106 vertices and 106 edges (it is guaranteed that if at least one graph that meets the requirements exists, then there also exists the graph with at most 106 vertices and at most 106 edges). 

Examples

Input

1


Output

YES
2 1
1 2

Note

In the sample from the statement there is a suitable graph consisting of two vertices, connected by a single edge.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
long long rdtsc() {
  long long tmp;
  asm("rdtsc" : "=A"(tmp));
  return tmp;
}
inline int myrand() { return abs((rand() << 15) ^ rand()); }
inline int rnd(int x) { return myrand() % x; }
const int INF = (int)1e9 + 1;
const long double EPS = 1e-9;
void precalc() {}
int k;
bool read() {
  if (scanf("%d", &k) < 1) {
    return 0;
  }
  return 1;
}
int n;
vector<pair<int, int> > edges;
void addPart(int S) {
  if (k == 1) {
    return;
  }
  for (int iter = 0; iter < 2; ++iter) {
    for (int i = 0; i < k; ++i) {
      for (int j = i + 1; j < k; ++j) {
        int s = n + i, t = n + j;
        edges.push_back(make_pair(s, t));
      }
    }
    for (int i = 0; i < (k - 1) / 2; ++i) {
      edges.push_back(make_pair(S, n + i));
    }
    n += k;
  }
  for (int i = (k - 1) / 2; i < k; ++i) {
    edges.push_back(make_pair(n - 2 * k + i, n - k + i));
  }
}
const int maxk = 100 + 10;
const int maxn = 2 + 4 * maxk;
int deg[maxn];
void solve() {
  if (!(k & 1)) {
    printf("NO\n");
    return;
  }
  edges.clear();
  n = 2;
  edges.push_back(make_pair(0, 1));
  addPart(0);
  addPart(1);
  assert(n <= maxn);
  printf("YES\n");
  printf("%d %d\n", n, ((int)(edges).size()));
  for (int i = 0; i < n; ++i) {
    deg[i] = 0;
  }
  for (int i = 0; i < ((int)(edges).size()); ++i) {
    printf("%d %d\n", edges[i].first + 1, edges[i].second + 1);
    deg[edges[i].first] += 1;
    deg[edges[i].second] += 1;
  }
  for (int i = 0; i < n; ++i) {
    assert(deg[i] == k);
  }
}
int main() {
  srand(rdtsc());
  precalc();
  while (1) {
    if (!read()) {
      break;
    }
    solve();
  }
  return 0;
}