import java.util.*; public class Main { public static void main(String... args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); StringBuilder sb=new StringBuilder(); for (int i = 0; i < n / 2; i++) { sb.append(1); } if(n%2==1){ sb.insert(0,7); sb.deleteCharAt(sb.length()-1); } System.out.println(sb); } }