Problem: Mahmoud was trying to solve the vertex cover problem on trees. The problem statement is:

Given an undirected tree consisting of n nodes, find the minimum number of vertices that cover all the edges. Formally, we need to find a set of vertices such that for each edge (u, v) that belongs to the tree, either u is in the set, or v is in the set, or both are in the set. Mahmoud has found the following algorithm:

  * Root the tree at node 1. 
  * Count the number of nodes at an even depth. Let it be evenCnt. 
  * Count the number of nodes at an odd depth. Let it be oddCnt. 
  * The answer is the minimum between evenCnt and oddCnt. 



The depth of a node in a tree is the number of edges in the shortest path between this node and the root. The depth of the root is 0.

Ehab told Mahmoud that this algorithm is wrong, but he didn't believe because he had tested his algorithm against many trees and it worked, so Ehab asked you to find 2 trees consisting of n nodes. The algorithm should find an incorrect answer for the first tree and a correct answer for the second one.

Input

The only line contains an integer n (2 ≤ n ≤ 105), the number of nodes in the desired trees.

Output

The output should consist of 2 independent sections, each containing a tree. The algorithm should find an incorrect answer for the tree in the first section and a correct answer for the tree in the second. If a tree doesn't exist for some section, output "-1" (without quotes) for that section only.

If the answer for a section exists, it should contain n - 1 lines, each containing 2 space-separated integers u and v (1 ≤ u, v ≤ n), which means that there's an undirected edge between node u and node v. If the given graph isn't a tree or it doesn't follow the format, you'll receive wrong answer verdict.

If there are multiple answers, you can print any of them.

Examples

Input

2


Output

-1
1 2


Input

8


Output

1 2
1 3
2 4
2 5
3 6
4 7
4 8
1 2
1 3
2 4
2 5
2 6
3 7
6 8

Note

In the first sample, there is only 1 tree with 2 nodes (node 1 connected to node 2). The algorithm will produce a correct answer in it so we printed  - 1 in the first section, but notice that we printed this tree in the second section.

In the second sample:

In the first tree, the algorithm will find an answer with 4 nodes, while there exists an answer with 3 nodes like this: <image> In the second tree, the algorithm will find an answer with 3 nodes which is correct: <image>

Solution (in JAVA):

Solution:
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Random;
import java.util.TreeSet;



public final class CF_473_C {

	static boolean verb=true;
	static void log(Object X){if (verb) System.err.println(X);}
	static void log(Object[] X){if (verb) {for (Object U:X) System.err.print(U+" ");System.err.println("");}}
	static void log(int[] X){if (verb) {for (int U:X) System.err.print(U+" ");System.err.println("");}}
	static void log(int[] X,int L){if (verb) {for (int i=0;i<L;i++) System.err.print(X[i]+" ");System.err.println("");}}
	static void log(long[] X){if (verb) {for (long U:X) System.err.print(U+" ");System.err.println("");}}

	static void logWln(Object X){if (verb) System.err.print(X);}
	static void info(Object o){	System.out.println(o);}
	static void output(Object o){outputWln(""+o+"\n");	}
	static void outputWln(Object o){try {out.write(""+ o);} catch (Exception e) {}}


	static long mod=1000000007;
	static long MX=1000000000000000001L;

	// Global vars
	static BufferedWriter out;
	static InputReader reader;


	static int[] stack;

	static int solve(int n,int[] anc,ArrayList<Integer>[] friends){
		stack=new int[n];
		int st=0;
		stack[st++]=0;
		int[][] cost=new int[2][n];
		// cost[1][u] = u is a chosen vertex 
		int[] ptr=new int[n];
		while (st>0){
			int u=stack[st-1];
			if (ptr[u]<friends[u].size()){
				int v=friends[u].get(ptr[u]++);
				if (v!=anc[u])
					stack[st++]=v;
			} else {
				st--;
				for (int v:friends[u]){
					cost[1][u]+=Math.min(cost[0][v],cost[1][v]);
				}
				for (int v:friends[u]){
					cost[0][u]+=Math.min(cost[1][v],1+cost[0][v]);
				}
				cost[1][u]++;
			}
		}
		return Math.min(cost[0][0],cost[1][0]);

	}

	static void testRandom(int n){

		int NTESTS=10000000;
		Random r=new Random();
		stack=new int[n];
		
		for (int t=0;t<NTESTS;t++){
			
			int[] h=new int[n];

			ArrayList<Integer>[] friends=new  ArrayList[n];
			int[] anc=new int[n];
			Arrays.fill(anc,-1);
			for (int i=0;i<n;i++)
				friends[i]=new ArrayList<Integer>();
		
			String ts="";
			for (int u=1;u<n;u++){
				int v=r.nextInt(u);
				anc[u]=v;
				friends[v].add(u);
				h[u]=h[v]+1;
				ts+=(u+1)+" "+(v+1)+"\n";
			}
			int[] sum=new int[2];
			for (int u=0;u<n;u++)
				sum[h[u]%2]++;
			int min=Math.min(sum[0],sum[1]);
			int ans=solve(n,anc,friends);
			if (ans!=min){
				log("Error");
				log(ans+" vs "+min);
				log("--------");
				log(ts);
				return;
				
			}
		}
	}


	

	static void process() throws Exception {


		out = new BufferedWriter(new OutputStreamWriter(System.out));
		reader=new InputReader(System.in);

		/*
		int n=reader.readInt();
		ArrayList<Integer>[] friends=new  ArrayList[n];
		int[] anc=new int[n];
		for (int i=0;i<n;i++)
			friends[i]=new ArrayList<Integer>();
	
		for (int i=0;i<n-1;i++){
			int u=reader.readInt()-1;
			int v=reader.readInt()-1;
			friends[u].add(v);
			anc[v]=u;
		}
		log(solve(n,anc,friends));
		*/
		//testRandom(5);
		
		int n=reader.readInt();
		if (n<6){
			output(-1);
		} else {
			output("1 2");
			output("2 4");
			output("2 3");
			output("4 5");
			output("4 6");
			for (int u=6;u<n;u++){
				output("4 "+(u+1));
			}
			
			
			
		}
		for (int i=0;i+1<n;i++){
			output((i+1)+" "+(i+2));
		}
		

		try {
			out.close();
		}
		catch (Exception EX){}


	}


	public static void main(String[] args) throws Exception {
		process();

	}

	static final class InputReader {
		private final InputStream stream;
		private final byte[] buf = new byte[1024];
		private int curChar;
		private int numChars;

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

		private int read() throws IOException {
			if (curChar >= numChars) {
				curChar = 0;
				numChars = stream.read(buf);
				if (numChars <= 0) {
					return -1;
				}
			}
			return buf[curChar++];
		}


		public final String readString() throws IOException {
			int c = read();
			while (isSpaceChar(c)) {
				c = read();
			}
			StringBuilder res=new StringBuilder();
			do {
				res.append((char)c);
				c = read();
			} while (!isSpaceChar(c));
			return res.toString();
		}

		public final int readInt() throws IOException {
			int c = read();
			boolean neg=false;
			while (isSpaceChar(c)) {
				c = read();
			}
			char d=(char)c;
			//log("d:"+d);
			if (d=='-') {
				neg=true;
				c = read();
			}
			int res = 0;
			do {
				res *= 10;
				res += c - '0';
				c = read();
			} while (!isSpaceChar(c));
			//log("res:"+res);
			if (neg)
				return -res;
			return res;

		}

		public final long readLong() throws IOException {
			int c = read();
			boolean neg=false;
			while (isSpaceChar(c)) {
				c = read();
			}
			char d=(char)c;
			//log("d:"+d);
			if (d=='-') {
				neg=true;
				c = read();
			}
			long res = 0;
			do {
				res *= 10;
				res += c - '0';
				c = read();
			} while (!isSpaceChar(c));
			//log("res:"+res);
			if (neg)
				return -res;
			return res;

		}




		private boolean isSpaceChar(int c) {
			return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
		}
	}


}