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.IOException;
import java.util.InputMismatchException;

public class RegularBridge {
    public static void main(String[] args) {
        FasterScanner sc = new FasterScanner();
        
        int K = sc.nextInt();
        
        if (K % 2 == 0) {
        	System.out.println("NO");
        	return;
        }
        
        int edges = 0;
        int N = K + 1;
        int C = K / 2;
        
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 2 * C; i++) {
        	int start = i * N + 1;
        	int end = start + N - 1;
        	edges += semiRegular(sb, start, end);
        }
        
        int endPt1 = 2 * N * C + 1;
        int endPt2 = 2 * N * C + 2;
        
        for (int i = 0; i < C; i++) {
        	int start = i * N + 1;
        	int end = start + N - 1;
        	sb.append(start + " " + endPt1 + "\n");
        	sb.append(end + " " + endPt1 + "\n");
        	edges += 2;
        }
        for (int i = C; i < 2 * C; i++) {
        	int start = i * N + 1;
        	int end = start + N - 1;
        	sb.append(start + " " + endPt2 + "\n");
        	sb.append(end + " " + endPt2 + "\n");
        	edges += 2;
        }
        
        sb.append(endPt1 + " " + endPt2 + "\n");
        edges++;
        
        System.out.println("YES");
        System.out.println(endPt2 + " " + edges);
        System.out.print(sb.toString());
    }
    
    public static int semiRegular(StringBuilder sb, int start, int end) {
    	int edges = 0;
    	for (int i = start; i <= end; i++) {
    		for (int j = i + 1; j <= end; j++) {
    			if (i == start && j == end) {
    				continue;
    			}
    			edges++;
    			sb.append(i + " " + j + "\n");
    		}
    	}
    	return edges;
    }
    
	public static class FasterScanner {
		private byte[] buf = new byte[1024];
		private int curChar;
		private int numChars;

		public int read() {
			if (numChars == -1)
				throw new InputMismatchException();
			if (curChar >= numChars) {
				curChar = 0;
				try {
					numChars = System.in.read(buf);
				} catch (IOException e) {
					throw new InputMismatchException();
				}
				if (numChars <= 0)
					return -1;
			}
			return buf[curChar++];
		}

		public String nextLine() {
			int c = read();
			while (isSpaceChar(c))
				c = read();
			StringBuilder res = new StringBuilder();
			do {
				res.appendCodePoint(c);
				c = read();
			} while (!isEndOfLine(c));
			return res.toString();
		}

		public String nextString() {
			int c = read();
			while (isSpaceChar(c))
				c = read();
			StringBuilder res = new StringBuilder();
			do {
				res.appendCodePoint(c);
				c = read();
			} while (!isSpaceChar(c));
			return res.toString();
		}

		public long nextLong() {
			int c = read();
			while (isSpaceChar(c))
				c = read();
			int sgn = 1;
			if (c == '-') {
				sgn = -1;
				c = read();
			}
			long res = 0;
			do {
				if (c < '0' || c > '9')
					throw new InputMismatchException();
				res *= 10;
				res += c - '0';
				c = read();
			} while (!isSpaceChar(c));
			return res * sgn;
		}

		public int nextInt() {
			int c = read();
			while (isSpaceChar(c))
				c = read();
			int sgn = 1;
			if (c == '-') {
				sgn = -1;
				c = read();
			}
			int res = 0;
			do {
				if (c < '0' || c > '9')
					throw new InputMismatchException();
				res *= 10;
				res += c - '0';
				c = read();
			} while (!isSpaceChar(c));
			return res * sgn;
		}
	        
	    public int[] nextIntArray(int n) {
	        return nextIntArray(n, 0);
	    }
	    
	    public int[] nextIntArray(int n, int off) {
	    	int[] arr = new int[n + off];
	    	for (int i = 0; i < n; i++) {
	    		arr[i + off] = nextInt();
	    	}
	    	return arr;
	    }
	    
	    public long[] nextLongArray(int n) {
	    	return nextLongArray(n, 0);
	    }
        
		public long[] nextLongArray(int n, int off) {
		    long[] arr = new long[n + off];
		    for (int i = 0; i < n; i++) {
		        arr[i + off] = nextLong();
		    }
		    return arr;
		}

	    private boolean isSpaceChar(int c) {
			return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
		}

		private boolean isEndOfLine(int c) {
			return c == '\n' || c == '\r' || c == -1;
		}
	}
}