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.util.Iterator;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Objects;
import java.util.AbstractCollection;
import java.util.TreeMap;
import java.util.Map;
import java.util.Collections;
import java.io.InputStream;

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

    static class DRegularBridge {
        public void solve(int testNumber, FastReader s, PrintWriter out) {
            int k = s.nextInt();
            if (k % 2 == 0) {
                out.println("NO");
                return;
            }

            out.println("YES");
            if (k == 1) {
                out.println("2 1");
                out.println("1 2");
                return;
            }

            int numVertices = 2 * (k + 1) + 2;
            int numEdges = k * numVertices;
            HashSet<DRegularBridge.edge> list = new HashSet<>();
            for (int i = 1; i <= k + 2; i++) {
                for (int j = i + 1; j <= k + 2; j++) {
                    list.add(new DRegularBridge.edge(i, j));
                }
            }

            TreeMap<Integer, ArrayList<Integer>> map = new TreeMap<>(Collections.reverseOrder());
            ArrayList<Integer> list1 = new ArrayList<>();
            list1.add(1);
            map.put(k + 2, list1);
            ArrayList<Integer> list2 = new ArrayList<>();

            for (int i = 2; i <= k + 2; i++) {
                list2.add(i);
            }

            map.put(k + 1, list2);
            while (map.size() > 1) {
                ArrayList<Integer> l = map.get(map.firstKey());
                int first;
                int sec;
                int firstDeg, secDeg;
                if (l.size() == 1) {
                    first = l.get(0);
                    firstDeg = map.firstKey();
                    map.remove(map.firstKey());
                    l = map.get(map.firstKey());
                    sec = l.get(l.size() - 1);
                    secDeg = map.firstKey();
                    l.remove(l.size() - 1);
                    map.put(secDeg, l);
                } else {
                    first = l.get(l.size() - 1);
                    sec = l.get(l.size() - 2);

                    l.remove(l.size() - 1);
                    l.remove(l.size() - 1);
                    firstDeg = secDeg = map.firstKey();
                    if (l.isEmpty()) {
                        map.remove(map.firstKey());
                    } else {
                        map.put(map.firstKey(), l);
                    }

                }


                list.remove(new DRegularBridge.edge(first, sec));
                list.remove(new DRegularBridge.edge(sec, first));

                ArrayList<Integer> list3 = map.getOrDefault(firstDeg - 1, new ArrayList<>());
                list3.add(first);
                map.put(firstDeg - 1, list3);

                list3 = map.getOrDefault(secDeg - 1, new ArrayList<>());
                list3.add(sec);
                map.put(secDeg - 1, list3);
            }

//        out.println(list);
            HashSet<DRegularBridge.edge> list4 = new HashSet<>();
            list4.addAll(list);
            Iterator<DRegularBridge.edge> iter = list.iterator();
            while (iter.hasNext()) {
                DRegularBridge.edge e = iter.next();
                list4.add(new DRegularBridge.edge(e.from + k + 2, e.to + k + 2));
            }
            list4.add(new DRegularBridge.edge(1, k + 3));
            iter = list4.iterator();
            out.println(numVertices + " " + list4.size());
            while (iter.hasNext()) {
                DRegularBridge.edge e = iter.next();
                out.println(e);
            }
        }

        private static class edge {
            int from;
            int to;

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

            public String toString() {
                final StringBuilder sb = new StringBuilder();
                sb.append(from);
                sb.append(" ").append(to);
                return sb.toString();
            }

            public boolean equals(Object o) {
                if (this == o) return true;
                if (!(o instanceof DRegularBridge.edge)) return false;
                DRegularBridge.edge edge = (DRegularBridge.edge) o;
                return from == edge.from &&
                        to == edge.to;
            }

            public int hashCode() {
                return Objects.hash(from, to);
            }

        }

    }

    static class FastReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
        private FastReader.SpaceCharFilter filter;

        public FastReader(InputStream stream) {
            this.stream = stream;
        }

        public int read() {
            if (numChars == -1) {
                throw new InputMismatchException();
            }
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0) {
                    return -1;
                }
            }
            return buf[curChar++];
        }

        public int nextInt() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            int res = 0;
            do {
                if (c < '0' || c > '9') {
                    throw new InputMismatchException();
                }
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

        public boolean isSpaceChar(int c) {
            if (filter != null) {
                return filter.isSpaceChar(c);
            }
            return isWhitespace(c);
        }

        public static boolean isWhitespace(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        public interface SpaceCharFilter {
            public boolean isSpaceChar(int ch);

        }

    }
}