package yukicoder; import java.util.Scanner; public class N83 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long c1 = 0; long c2 = 0; if(n % 2 == 0){ c1 = n / 2; for(long i = 0;i < c1;++i){ System.out.print(1); } }else{ c1 = n / 2 - 1; c2 = 1; System.out.print(7); for(long i = 0;i < c1;++i){ System.out.print(1); } } } }