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:
/**
 *
 * @author sarthak
 */

import java.util.*;
import java.math.*;
import java.io.*;
public class rnd306_Div1_B {

    static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        public FastScanner(InputStream is) {
            br = new BufferedReader(new InputStreamReader(is));
        }

        public String next() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        public String nextLine() {
            st = null;
            try {
                return br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
                return "";
            }
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

        public long nextLong() {
            return Long.parseLong(next());
        }

        public double nextDouble() {
            return Double.parseDouble(next());
        }
    }
static class P implements Comparable{

        private int x, y;

        public P(int x, int y) {
            this.x = x;
            this.y = y;
        }

        public int hashCode() {
            return (x * 31) ^ y;
        }

        public boolean equals(Object o) {
            if (o instanceof P) {
                P other = (P) o;
                return (x == other.x && y == other.y);
            }
            return false;
        }
        public int compareTo(Object obj) {
		P l = (P) obj;
		if (this.x == l.x){
			if (this.y == l.y) return 0;
			return (this.y < l.y)? -1: 1;
		}
		return (this.x < l.x)? -1: 1;
	}
    }

    public static void main(String[] args){
         
    FastScanner s = new FastScanner(System.in);
    StringBuilder op=new StringBuilder();
    
    
    int k=s.nextInt();
    if(k%2==0){System.out.println("NO");return;}
    if(k==1)op.append("YES\n"+2 + " " + 1 + "\n"+1 +" " +2);
    else{
        Set<P> left=new TreeSet<>();
       
        //left side of the bridge
        int v=k+2;
        for(int i=2;i<=k;i++)
            left.add(new P(1,i));
           
        for(int i=2;i<=k;i++)
        {
            left.add(new P(i,k+1));left.add(new P(i,k+2));
            for(int j=2;j<=k;j++)
                if(i!=j)left.add(new P(Math.min(i, j),Math.max(i,j)));
                
        }
          for(int i=2;i<=k-1;i+=2)
              left.remove(new P(i,i+1));
        left.add(new P(k+1,k+2));
        //right side
        Set<P> right=new TreeSet<>();
        for(P p:left)
            right.add(new P(p.x+k+2,p.y+k+2));
       left.add(new P(1,k+3));
          
//      int[] deg=new int[2*k+5];
//      for(P p:left)
//      {deg[p.x]++;deg[p.y]++;}
//       for(P p:right)
//      {deg[p.x]++;deg[p.y]++;}
//      for(int i=1;i<=2*k+4;i++)
//          System.out.print(deg[i] + " ");
      op.append("YES\n"+(2*k+4)+" "+(left.size()+right.size())+"\n");
      for(P p:left)
          op.append(p.x + " " + p.y + "\n");
      for(P p:right)
          op.append(p.x + " "+ p.y+"\n");
      
      
      
     }
    System.out.println(op);
    
    
    
    
    
    
    
    
    
    
    
    
    
    }


}