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:
//package Codeforces.Div2D_306;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.util.TreeSet;

/*
 * some cheeky quote
 */

public class Main
{
    FastScanner in;
    PrintWriter out;
    int offset = 0;
    TreeSet<Edge> edgeList = new TreeSet<Edge>();


    public void solve() throws IOException
    {
        int deg = in.nextInt();
        if (deg == 1)
        {
            System.out.println("YES");
            System.out.println("2 1");
            System.out.println("1 2");
            return;
        }
        if (deg % 2 == 0)
        {
            System.out.println("NO");
            return;
        }

        int n = 2 * deg + 4;
        int N = deg + 2;
        offset = 0;
        for (int i = 1; i < N; i++)
        {
            for (int j = i + 1; j <= N; j++)
            {
                addEdge(i, j);
            }
        }
        removeEdge(1, N);
        removeEdge(2, N);
        for (int i = 3; i < N; i += 2)
        {
            removeEdge(i, i + 1);
        }


        offset = N;
        for (int i = 1; i < N; i++)
        {
            for (int j = i + 1; j <= N; j++)
            {
                addEdge(i, j);
            }
        }
        removeEdge(1, N);
        removeEdge(2, N);
        for (int i = 3; i < N; i += 2)
        {
            removeEdge(i, i + 1);
        }

        offset = 0;
        addEdge(N, N * 2);

        System.out.println("YES");
        System.out.println(n + " " + edgeList.size());
        while (!edgeList.isEmpty())
        {
            Edge temp = edgeList.pollFirst();
            System.out.println(temp.from + " " + temp.to);
        }
    }

    public void addEdge(int from, int to)
    {
        edgeList.add(new Edge(from + offset, to + offset));
    }

    public void removeEdge(int from, int to)
    {
        edgeList.remove(new Edge(from + offset, to + offset));
    }

    public void run()
    {
        try
        {
            in = new FastScanner();
            out = new PrintWriter(System.out);

            solve();

            out.close();
        } catch (IOException e)
        {
            e.printStackTrace();
        }
    }

    class FastScanner
    {
        BufferedReader br;
        StringTokenizer st;

        FastScanner()
        {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

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

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

    public static void main(String[] arg)
    {
        new Main().run();
    }
}

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

    public Edge(int from, int to)
    {
        this.from = from;
        this.to = to;
    }

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