import java.util.Arrays; import java.util.LinkedList; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); final int ones = N % 2 == 0 ? N / 2 : (N - 1) / 2 - 1; if(N % 2 != 0){ System.out.print("7"); } for(int i = 0; i < ones; i++){ System.out.print("1"); } System.out.println(); } }