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:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author dipankar12
 */
import java.io.*;
import java.util.*;
public class r306d {
    public static void main(String args[])
    {
        fastio in=new fastio(System.in);
        PrintWriter pw=new PrintWriter(System.out);

        int k=in.nextInt();
        ArrayList<Integer> al=new ArrayList<Integer>();
        ArrayList<Integer> al1=new ArrayList<Integer>();
        
        al.add(1);
        al1.add(2);
        
        HashSet<Integer> total=new HashSet<Integer>();
        total.add(1);
        total.add(2);
        //right
        HashSet<Integer> hs=new HashSet<Integer>();
        int max=0;
        for(int i=1;i<k;i++)
        {
            hs.add(i+2);
            max=Math.max(max, i+2);
            total.add(i+2);
            al.add(2);
            al1.add(i+2);
        }
        
        Iterator<Integer> it=hs.iterator();
        while(it.hasNext())
        {
            int x=it.next();
            for(int i=max+1;i<max+1+hs.size();i++)
            {
                al.add(x);
                al1.add(i);
                total.add(x);
                total.add(i);
            }
        }
        
        for(int i=max+1;i<max+1+hs.size();i+=2)
        {
            al.add(i);
            al1.add(i+1);
            total.add(i);
            total.add(i+1);
        }
        
        //left
        int z=2+hs.size()+hs.size()+1;
        //pw.println("z is"+z);
        hs=new HashSet<Integer>();
        max=0;
        for(int i=z;i<k+z-1;i++)
        {
            hs.add(i);
            max=Math.max(max, i);
            total.add(i);
            al.add(1);
            al1.add(i);
            //pw.println("putting"+1+" "+i);
        }
        
        it=hs.iterator();
        while(it.hasNext())
        {
            int x=it.next();
            for(int i=max+1;i<max+1+hs.size();i++)
            {
                al.add(x);
                al1.add(i);
                total.add(x);
                total.add(i);
            }
        }
        
        for(int i=max+1;i<max+1+hs.size();i+=2)
        {
            al.add(i);
            al1.add(i+1);
            total.add(i);
            total.add(i+1);
        }
        
        //pw.println(al);
        //pw.println(al1);
        //pw.println(total);
        if(k%2==0)
        {
            pw.println("NO");
            pw.close();
            System.exit(0);
        }
        
        pw.println("YES");
        pw.println(total.size()+" "+al.size());
        for(int i=0;i<al.size();i++)
            pw.println(al.get(i)+" "+al1.get(i));
        pw.close();
    }

    static class fastio {
     
            private final InputStream stream;
            private final byte[] buf = new byte[8192];
            private int cchar, snchar;
            private SpaceCharFilter filter;
     
            public fastio(InputStream stream) {
                this.stream = stream;
            }
     
            public int nxt() {
                if (snchar == -1)
                    throw new InputMismatchException();
                if (cchar >= snchar) {
                    cchar = 0;
                    try {
                        snchar = stream.read(buf);
                    } catch (IOException e) {
                        throw new InputMismatchException();
                    }
                    if (snchar <= 0)
                        return -1;
                }
                return buf[cchar++];
            }
     
            public int nextInt() {
                int c = nxt();
                while (isSpaceChar(c)) {
                    c = nxt();
                }
                int sgn = 1;
                if (c == '-') {
                    sgn = -1;
                    c = nxt();
                }
                int res = 0;
                do {
                    if (c < '0' || c > '9')
                        throw new InputMismatchException();
                    res *= 10;
                    res += c - '0';
                    c = nxt();
                } while (!isSpaceChar(c));
                return res * sgn;
            }
     
            public long nextLong() {
                int c = nxt();
                while (isSpaceChar(c)) {
                    c = nxt();
                }
                int sgn = 1;
                if (c == '-') {
                    sgn = -1;
                    c = nxt();
                }
                long res = 0;
                do {
                    if (c < '0' || c > '9')
                        throw new InputMismatchException();
                    res *= 10;
                    res += c - '0';
                    c = nxt();
                } while (!isSpaceChar(c));
                return res * sgn;
            }
     
            public int[] nextIntArray(int n) {
                int a[] = new int[n];
                for (int i = 0; i < n; i++) {
                    a[i] = nextInt();
                }
                return a;
            }
     
            public String readString() {
                int c = nxt();
                while (isSpaceChar(c)) {
                    c = nxt();
                }
                StringBuilder res = new StringBuilder();
                do {
                    res.appendCodePoint(c);
                    c = nxt();
                } while (!isSpaceChar(c));
                return res.toString();
            }
     
            public String nextLine() {
                int c = nxt();
                while (isSpaceChar(c))
                    c = nxt();
                StringBuilder res = new StringBuilder();
                do {
                    res.appendCodePoint(c);
                    c = nxt();
                } while (!isEndOfLine(c));
                return res.toString();
            }
     
            public boolean isSpaceChar(int c) {
                if (filter != null)
                    return filter.isSpaceChar(c);
                return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
            }
     
            private boolean isEndOfLine(int c) {
                return c == '\n' || c == '\r' || c == -1;
            }
     
            public interface SpaceCharFilter {
                public boolean isSpaceChar(int ch);
            }
        }
    

}