import java.util.*; public class HelloWorld { public static void main( String[] args ) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int keta = 0; int i = N; if(N%2 == 0){ while(i>0){ System.out.print("1"); i = i-2; } }else{ System.out.print("7"); i = i-3; while(i>0){ System.out.print("1"); i = i-2; } } } }