import java.util.*; public class Run { public static void main (String arg[]) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); if (N < 2 || N > 100000) System.exit(1); if (N%2==1) { System.out.print(7); N -= 3; } for (int i = 0; i < N/2; i++) { System.out.print(1); } } }