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 JAVA):

Solution:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class D {
	static int k;

	public static void main(String[] args) throws IOException {

		k = readIntArray()[0];
		long s = System.currentTimeMillis();
		if (k % 2 == 0) {
			System.out.println("NO");
			return;
		}

		List<List<Integer>> g = new ArrayList<List<Integer>>();
		int n = (k + 1) * (k - 1) + 2;
		for (int i = 0; i < n; i++) {
			g.add(new ArrayList<Integer>());
		}

		g.get(0).add(1);
		g.get(1).add(0);

		for (int i = 2; i < n; i += k + 1) {
			for (int j = i; j < i + k + 1; j++) {
				for (int j2 = j + 1; j2 < i + k + 1; j2++) {
					if (j == i && j2 == i + 1) {
						if (g.get(0).size() < k) {
							g.get(0).add(j);
							g.get(j).add(0);
							g.get(j2).add(0);
							g.get(0).add(j2);
						} else {
							g.get(1).add(j);
							g.get(j).add(1);
							g.get(j2).add(1);
							g.get(1).add(j2);
						}
					} else {
						g.get(j).add(j2);
						g.get(j2).add(j);
					}
				}
			}
		}

		System.out.println("YES");
		print(g);

//		System.out.println(System.currentTimeMillis() - s);
	}

	static List<List<Integer>> getCompleteGraph(int n) {

		List<List<Integer>> g = new ArrayList<List<Integer>>();

		for (int i = 0; i < n; i++) {
			g.add(new ArrayList<Integer>());
		}

		return g;
	}

	static void print(List<List<Integer>> g) {
		int n = g.size();
		int m = 0;
		StringBuilder sb = new StringBuilder();
		boolean[][] already = new boolean[n + 1][n + 1];
		for (int i = 0; i < g.size(); i++) {
			for (int j = 0; j < g.get(i).size(); j++) {
				int a = i;
				int b = g.get(i).get(j);
				if (!already[a][b] && !already[b][a]) {
					if (sb.length() > 0) {
						sb.append('\n');
					}
					sb.append((a + 1));
					sb.append(' ');
					sb.append((b + 1));
					m++;
					already[a][b] = already[b][a] = true;
				}
			}
		}

		System.out.println(n + " " + m);
		System.out.println(sb);
	}

	static InputStreamReader isr = new InputStreamReader(System.in);
	static BufferedReader br = new BufferedReader(isr);

	static int[] readIntArray() throws IOException {
		String[] v = br.readLine().split(" ");
		int[] ans = new int[v.length];

		for (int i = 0; i < ans.length; i++) {
			ans[i] = Integer.valueOf(v[i]);
		}

		return ans;
	}

	static long[] readLongArray() throws IOException {
		String[] v = br.readLine().split(" ");
		long[] ans = new long[v.length];

		for (int i = 0; i < ans.length; i++) {
			ans[i] = Long.valueOf(v[i]);
		}

		return ans;
	}

}