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.util.*;
import java.io.*;

public class D
{
	public static void main(String[]args) throws Exception
	{
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int nodes = 0;
		int edges = 0;
		if(n%2==0) System.out.println("NO");
		else if(n==1)
		{
			System.out.println("YES");
			System.out.println("2 1");
			System.out.println("1 2");
		}
		else if(n==3)
		{
			System.out.println("YES");
			System.out.println("10 15");
			System.out.println("1 2");
			System.out.println("2 3");
			System.out.println("3 4");
			System.out.println("4 1");
			System.out.println("5 2");
			System.out.println("5 3");
			System.out.println("5 4");
			System.out.println("6 7");
			System.out.println("7 10");
			System.out.println("10 8");
			System.out.println("8 6");
			System.out.println("9 10");
			System.out.println("9 7");
			System.out.println("9 8");
			System.out.println("1 6");
		}
		else
		{
			ArrayList<Node> shape = new ArrayList<Node>();
			ArrayList<Node> middle = new ArrayList<Node>(); 
			
			for(int i=0; i<n; i++)
				shape.add(new Node(i+1));
			int mid = n-3;
			if(mid==0) mid++;
			for(int i=0; i<mid; i++)
				middle.add(new Node(shape.size()+i+1)); 
			
			for(int i=0; i<n-1; i++)
			{
				Node s = shape.get(i);
				Node d = shape.get(i+1);
				s.conns.add(d);
				s.degree++;
				d.degree++; 
				edges++;
			}
			shape.get(n-1).conns.add(shape.get(0));
			shape.get(n-1).degree++;
			shape.get(0).degree++; 
			edges++;
			
			for(int i=0; i<middle.size(); i++)
			{
				Node m = middle.get(i);
				for(int j=0; j<shape.size(); j++)
				{
					Node v = shape.get(j);
					m.degree++;
					v.degree++; 
					m.conns.add(v); 
					edges++;
				}
			}
			int half = shape.size()/2; 
			Node mi = shape.get(half);
			mi.conns.add(shape.get(half+2));
			mi.degree++;
			shape.get(half+2).degree++; 
			edges++;
			
			mi = shape.get(half-1);
			mi.conns.add(shape.get(half+1));
			mi.degree++;
			shape.get(half+1).degree++; 
			edges++;
			for(int i=1; i<shape.size()/2; i++)
			{
				Node u = shape.get(i);
				if(u.degree==n) continue;
				Node v = shape.get(shape.size()-i);
				u.degree++;
				v.degree++; 
				u.conns.add(v); 
				edges++;
			}
			
			/* for(int i=0; i<shape.size();i++)
			{
				System.out.println("Node " + shape.get(i).name + ": " + shape.get(i).degree);
			}
			for(int i=0; i<middle.size();i++)
			{
				System.out.println("Node " + middle.get(i).name + ": " + middle.get(i).degree);
			} */
			nodes = middle.size() + shape.size(); 
			nodes*=2; 
			edges*=2;
			edges++; 
			int off = shape.size() + middle.size();
			
			StringBuilder sb = new StringBuilder();
			StringBuilder sb2 = new StringBuilder(); 
			for(int i=0; i<shape.size(); i++)
			{
				Node u = shape.get(i);
				for(int j=0; j<u.conns.size(); j++)
				{
					Node v = u.conns.get(j);
					sb.append(u.name + " " + v.name + "\n");
					int first = u.name + off;
					int sec = v.name + off; 
					sb2.append(first + " " + sec + "\n");
				}
			}
			
			for(int i=0; i<middle.size(); i++)
			{
				Node u = middle.get(i);
				for(int j=0; j<u.conns.size(); j++)
				{
					Node v = u.conns.get(j);
					sb.append(u.name + " " + v.name + "\n");
					int first = u.name + off;
					int sec = v.name + off; 
					sb2.append(first + " " + sec + "\n");
				}
			}
			
			sb2.append(1 + " " + (1+off) + "\n"); 
			System.out.println("YES");
			System.out.println(nodes + " " + edges); 
			System.out.print(sb);
			System.out.print(sb2);
		}
	}
}

class Node
{
	int name, degree;
	ArrayList<Node> conns; 
	public Node(int name)
	{
		this.name = name; 
		conns = new ArrayList<Node>(); 
		degree = 0; 
	}
}