import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s; if(n%2 == 1){ System.out.print("7"); } else { System.out.print("1"); } n /= 2; for(int i = 1; i < n; i++){ System.out.print("1"); } System.out.println(); } }