import java.util.Scanner; public class Main{ public static void main(String[] args) { //System.out.println("数字"); Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); scanner.close(); if(N % 2 == 0) { int k = N / 2; for(int i = 0; i < k; i++) { System.out.print("1"); } }else { System.out.print("7"); int k = N / 2; for(int i = 0; i < k - 1; i++) { System.out.print("1"); } } } }