import java.util.*; public class matching{ public static void main(String... args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); make(n); } public static void make(int n){ if(n%2!=0){ System.out.print("7"); n-=3; } while(n>1){ System.out.print("1"); n-=2; } } }