Apart from Nian, there is a daemon named Sui, which terrifies children and causes them to become sick. Parents give their children money wrapped in red packets and put them under the pillow, so that when Sui tries to approach them, it will be driven away by the fairies inside.

Big Banban is hesitating over the amount of money to give out. He considers loops to be lucky since it symbolizes unity and harmony.

He would like to find a positive integer n not greater than 1018, such that there are exactly k loops in the decimal representation of n, or determine that such n does not exist.

A loop is a planar area enclosed by lines in the digits' decimal representation written in Arabic numerals. For example, there is one loop in digit 4, two loops in 8 and no loops in 5. Refer to the figure below for all exact forms.

<image>

Input

The first and only line contains an integer k (1 ≤ k ≤ 106) — the desired number of loops.

Output

Output an integer — if no such n exists, output -1; otherwise output any such n. In the latter case, your output should be a positive decimal integer not exceeding 1018.

Examples

Input

2


Output

462

Input

6


Output

8080
// John Lewis
// Date:
// Program:

import java.util.*;
import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		input.init(System.in);
		PrintWriter out = new PrintWriter(System.out);
		// Variables
		int numLoops = input.nextInt();
		if (numLoops > 36) {
			out.println(-1);
		}
		else {
			String printNum = "";

			for (int i = 0; i < numLoops / 2; i++) {
				printNum += "8";
			}
			if (numLoops%2 != 0){
				printNum+= "4";}
			out.println(printNum);

		}
		out.close();
	}
}



class input {

	static BufferedReader reader;
	static StringTokenizer tokenizer;

	/**
	 * call this method to initialize reader for InputStream
	 */
	static void init(InputStream input) {
		reader = new BufferedReader(
			new InputStreamReader(input));
		tokenizer = new StringTokenizer("");
	}

	/**
	 * get next word
	 */
	static String next() throws IOException {
		while (!tokenizer.hasMoreTokens()) {
			//TODO add check for eof if necessary
			tokenizer = new StringTokenizer(
				reader.readLine());
		}
		return tokenizer.nextToken();
	}

	static String nextLine() throws IOException {
		return reader.readLine();
	}

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

	static double nextDouble() throws IOException {
		return Double.parseDouble(next());
	}

	static long nextLong() throws IOException {
		return Long.parseLong(next());
	}
}
