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.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.TreeSet;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.StringTokenizer;
import java.io.Writer;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 * @author zodiacLeo
 */
public class Main
{
    public static void main(String[] args)
    {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastScanner in = new FastScanner(inputStream);
        FastPrinter out = new FastPrinter(outputStream);
        TaskD solver = new TaskD();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskD
    {
        public void solve(int testNumber, FastScanner in, FastPrinter out)
        {
            int n = in.nextInt();
            if (n % 2 == 0)
            {
                out.println("NO");
            } else
            {

                int V = 2 * (n - 1) + 1;
                int TV = V + V;
                int TE = 0;
                TreeSet<Edge> e = new TreeSet<Edge>();

                int b = 0;
                int fs = b + 1;
                int fe = fs + (n - 2);
                int ss = fs + (n - 1);
                int se = ss + (n - 2);

//            System.out.println(fs);
//            System.out.println(fe);
//            System.out.println(ss);
//            System.out.println(se);
                for (int i = fs; i <= fe; i++)
                {
                    if (i != 0)
                    {
                        e.add(new Edge(0, i));
                    }
                }
                for (int i = fs; i <= fe; i++)
                {
                    for (int j = ss, c = 1; j <= se; j++, c++)
                    {
                        if (i != j)
                        {
                            e.add(new Edge(i, j));
                        }
                        if (c % 2 == 0)
                        {
                            if (j - 1 != j)
                            {
                                e.add(new Edge(j - 1, j));
                            }
                        }
                    }
                }
                e.add(new Edge(0, V));
                TE++;
                b = V;
                fs = b + 1;
                fe = fs + (n - 2);
                ss = fs + (n - 1);
                se = ss + (n - 2);

                for (int i = fs; i <= fe; i++)
                {
                    if (V != i)
                    {
                        e.add(new Edge(V, i));
                    }
                }
                for (int i = fs; i <= fe; i++)
                {
                    for (int j = ss, c = 1; j <= se; j++, c++)
                    {
                        if (i != j)
                        {
                            e.add(new Edge(i, j));
                        }
                        if (c % 2 == 0)
                        {
                            if (j - 1 != j)
                            {
                                e.add(new Edge(j - 1, j));
                            }
                        }
                    }
                }
                out.println("YES");
                TE = e.size();
                StringBuffer result = new StringBuffer("");
                while (!e.isEmpty())
                {
                    Edge ee = e.pollFirst();
                    if (ee.from != ee.to)
                    {
                        result.append((ee.from + 1) + " " + (ee.to + 1) + "\n");
                    }
                }
                out.println(TV + " " + TE);
                out.println(result);

            }

        }

        class Edge implements Comparable<Edge>
        {
            int from;
            int to;

            Edge(int from, int to)
            {
                this.from = Math.min(from, to);
                this.to = Math.max(from, to);
            }

            public int compareTo(Edge that)
            {
                int fromDiff = Integer.compare(this.from, that.from);
                return fromDiff != 0 ? fromDiff : Integer.compare(this.to, that.to);
            }

        }

    }

    static class FastScanner
    {
        BufferedReader br;
        StringTokenizer st;

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

        public FastScanner(File f)
        {
            try
            {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e)
            {
                e.printStackTrace();
            }
        }

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

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

    }

    static class FastPrinter extends PrintWriter
    {
        public FastPrinter(OutputStream out)
        {
            super(out);
        }

        public FastPrinter(Writer out)
        {
            super(out);
        }

    }
}