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>>();
		for (int i = 0; i < 2; i++) {
			g.add(new ArrayList<Integer>());
		}

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

		while(g.get(0).size() != k || g.get(1).size() != k) {
			List<List<Integer>> cg = getCompleteGraph(k + 1);
			int already = g.size();
			add(g, cg);
			if (g.get(0).size() < k) {
				for (int i = 0; i < k+1 && g.get(0).size() < k; i+=2) {
					addEdge(g, 0, i + already);
					addEdge(g, 0, i + already + 1);
					
					g.get(i + already).remove(new Integer(i + already + 1));
					g.get(i + already + 1).remove(new Integer(i + already));
				}
			} else {
				for (int i = 0; i < k+1 && g.get(1).size() < k; i+=2) {
					addEdge(g, 1, i + already);
					addEdge(g, 1, i + already + 1);
					
					g.get(i + already).remove(new Integer(i + already + 1));
					g.get(i + already + 1).remove(new Integer(i + already));
				}
			}
		}
		
//		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);
	}
	
	private static void addEdge(List<List<Integer>> g, int v1, int v2) {
		g.get(v1).add(v2);
		g.get(v2).add(v1);
	}

	private static void add(List<List<Integer>> g, List<List<Integer>> cg) {
		int al = g.size();
		for (int i = 0; i < cg.size(); i++) {
			g.add(new ArrayList<Integer>());
			for (int j = 0; j < cg.get(i).size(); j++) {
				g.get(al + i).add(al + cg.get(i).get(j));
			}
		}
	}

	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>());
		}
		
		for (int i = 0; i < n; i++) {
			for (int j = i + 1; j < n; j++) {
				g.get(i).add(j);
				g.get(j).add(i);
			}
		}

		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;
	}

}