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 ans;
vector<int> vec[1000005];
int deg[1000005];
int visited[100005];
map<pair<int, int>, int> graph;
int main() {
  int k, m, fir = 1, sec;
  cin >> k;
  if (k % 2 == 0) {
    cout << "NO";
    return 0;
  }
  cout << "YES" << endl;
  if (k == 1) {
    cout << "2 1" << endl;
    cout << "1 2" << endl;
    return 0;
  }
  m = (k + 2) * k;
  cout << 2 * k + 4 << " " << m << endl;
  sec = k + 3;
  vec[fir].push_back(sec);
  vec[sec].push_back(fir);
  deg[fir] = k;
  deg[sec] = k;
  graph[make_pair(fir, sec)] = graph[make_pair(sec, fir)] = 1;
  for (int i = fir + 1; i <= k; i++) {
    vec[fir].push_back(i);
    vec[i].push_back(fir);
    graph[make_pair(fir, i)] = graph[make_pair(i, fir)] = 1;
    deg[i]++;
  }
  for (int i = sec + 1; i <= (2 * k + 2); i++) {
    vec[sec].push_back(i);
    vec[i].push_back(sec);
    graph[make_pair(i, sec)] = graph[make_pair(sec, i)] = 1;
    deg[i]++;
  }
  for (int i = fir + 1; i <= k; i++) {
    for (int j = fir + 1; j <= k; j++) {
      if (deg[i] == k - 2) break;
      if (i % 2 && !(j % 2) && (i == j - 1))
        graph[make_pair(i, j)] = graph[make_pair(j, i)] = 1;
      if (deg[j] < k - 2 && i != j && !graph[make_pair(j, i)] &&
          !graph[make_pair(i, j)]) {
        vec[j].push_back(i);
        vec[i].push_back(j);
        graph[make_pair(i, j)] = graph[make_pair(j, i)] = 1;
        deg[i]++;
        deg[j]++;
      }
    }
  }
  for (int i = sec + 1; i <= 2 * k + 2; i++) {
    for (int j = sec + 1; j <= 2 * k + 2; j++) {
      if (deg[i] == k - 2) break;
      if (i % 2 && !(j % 2) && i == j - 1)
        graph[make_pair(i, j)] = graph[make_pair(j, i)] = 1;
      if (deg[j] < k - 2 && i != j && !graph[make_pair(j, i)] &&
          !graph[make_pair(i, j)]) {
        vec[j].push_back(i);
        vec[i].push_back(j);
        graph[make_pair(i, j)] = graph[make_pair(j, i)] = 1;
        deg[i]++;
        deg[j]++;
      }
    }
  }
  for (int i = fir + 1; i <= k; i++) {
    vec[i].push_back(k + 1);
    vec[k + 1].push_back(i);
    vec[i].push_back(k + 2);
    vec[k + 2].push_back(i);
    deg[i] += 2, deg[k + 1]++, deg[k + 2]++;
    graph[make_pair(i, k + 1)] = graph[make_pair(k + 1, i)] = 1;
    graph[make_pair(i, k + 2)] = graph[make_pair(k + 2, i)] = 1;
  }
  for (int i = sec + 1; i <= 2 * k + 2; i++) {
    vec[i].push_back(2 * k + 3);
    vec[2 * k + 3].push_back(i);
    vec[i].push_back(2 * k + 4);
    vec[2 * k + 4].push_back(i);
    graph[make_pair(i, 2 * k + 3)] = graph[make_pair(2 * k + 3, i)] = 1;
    graph[make_pair(i, 2 * k + 4)] = graph[make_pair(2 * k + 3, 4)] = 1;
  }
  vec[k + 1].push_back(k + 2);
  vec[k + 2].push_back(k + 1);
  vec[2 * k + 3].push_back(2 * k + 4);
  vec[2 * k + 4].push_back(2 * k + 3);
  graph[make_pair(2 * k + 4, 2 * k + 3)] =
      graph[make_pair(2 * k + 3, 2 * k + 4)] = 1;
  graph[make_pair(k + 1, k + 2)] = graph[make_pair(k + 2, k + 1)] = 1;
  int t = 0;
  for (int i = 1; i <= 2 * k + 4; i++) {
    for (int j = 0; j < vec[i].size(); j++)
      if (graph[make_pair(i, vec[i][j])]) {
        cout << i << " " << vec[i][j] << endl;
        graph[make_pair(i, vec[i][j])] = graph[make_pair(vec[i][j], i)] = 0;
      }
  }
}