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.util.*;
import java.io.*;
import java.math.*;

public class Main {

    PrintWriter out = new PrintWriter(System.out);
    InputReader ir = new InputReader(System.in);
    final long kmod = 993960000099397l;
    List <Integer> ansu = new ArrayList();
    List <Integer> ansv = new ArrayList();
    int max = -1;
    void solve() throws IOException{
        int k = ir.readInt();
        if(k == 1) {
            out.println("YES");
            out.println("2 1");
            out.println("1 2");
            return;
        }
        if(k % 2 == 0) {
            out.println("NO");
            return;
        }
        out.println("YES");
        int offset = k + 1;

        int edge = (offset * (offset - 1))/2;
        List <Integer> u = new ArrayList();
        List <Integer> v = new ArrayList();
       
        for(int i = 1; i <= k + 1; i++) {
            for(int j = i + 1; j <= k + 1; j++) {
                if(i == 1 && j == 2)
                    continue;
                u.add(i);
                v.add(j);
            }
        }
        int c1 = -1;
        int c2 = -2;
        
        int store = 0;
        for(int i = 0; i < k/2; i ++) {
            add((store + 1), c1);
            add((store + 2), c1);
            for(int j = 0; j < u.size(); j++) {
                add((store + u.get(j)), (store + v.get(j)));
            }
            store += offset;
        }
        for(int i = 0; i < k/2; i ++) {
            add((store + 1), c2);
            add((store + 2), c2);
            for(int j = 0; j < u.size(); j++) {
                add((store + u.get(j)), (store + v.get(j)));
            }
            store += offset;
        }
        ansu.add(max + 1);
        ansv.add(max + 2);
        out.println(max + 2 + " "+ ansu.size());
        for(int i = 0; i < ansu.size(); i++) {
            int uu = ansu.get(i) == -1 ? max + 1 : ansu.get(i) == -2 ? max + 2 : ansu.get(i);
            
            int vv = ansv.get(i) == -1 ? max + 1 : ansv.get(i) == -2 ? max + 2 : ansv.get(i);
            
            out.println(uu + " " + vv);
        }
    }
    void add(int a, int b) {
        ansu.add(a);
        ansv.add(b);
        max = Math.max(max, a);
        max = Math.max(max, b);
    }
    void run() throws IOException{
        solve();
        out.close();
    }
    public static void main(String args[]) throws IOException{
        new Main().run();
    }
}
class InputReader {
 
    private InputStream stream;
    private byte[] buf = new byte[1024];
    private int curChar;
    private int numChars;
    private SpaceCharFilter filter;
 
    public InputReader(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 final int readInt() {
            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 long readLong() {
        int c = read();
        while (isSpaceChar(c))
            c = read();
        int sgn = 1;
        if (c == '-') {
            sgn = -1;
            c = read();
        }
        long 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 String readString() {
        int c = read();
        while (isSpaceChar(c))
            c = read();
        StringBuilder res = new StringBuilder();
        do {
            res.appendCodePoint(c);
            c = read();
        } while (!isSpaceChar(c));
        return res.toString();
    }
 
    public boolean isSpaceChar(int c) {
        if (filter != null)
            return filter.isSpaceChar(c);
        return isWhitespace(c);
    }
        public double readDouble() {
        return Double.parseDouble(readString());
    }
 
    public static boolean isWhitespace(int c) {
        return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
    }
 
    public String next() {
        return readString();
    }
 
    public interface SpaceCharFilter {
        public boolean isSpaceChar(int ch);
    }
}