import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); char[] arr = new char[n / 2]; Arrays.fill(arr, '1'); if (n % 2 == 1) { arr[0] = '7'; } System.out.println(arr); } }