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; for(i= N; i>5;){ keta++; i = i-2; System.out.print("1"); } if(i == 5){ System.out.print("71"); } else if(i==4){ System.out.print("11"); } else if(i==3){ System.out.print("7"); } else if(i==2){ System.out.print("1"); } } }