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