import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(reader.readLine()); if (N % 2 == 0) { System.out.println(createSequenceOfOne(N)); } else { System.out.println("7"+createSequenceOfOne(N-3)); } } public static String createSequenceOfOne(int n) { int i = 0; String acc = ""; while (i < n) { acc = acc + "1"; i += 2; } return acc; } }