import java.util.Scanner; public class MaxMatching { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); // 2 : 1 // 3 : 7 int div = N / 2; int remainder = N % 2; if (remainder == 1) { System.out.print("7"); div = div - 1; } for (int i = 0; i < div; i++) { System.out.print("1"); } } }