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