import java.util.Scanner; public class N083 { public static void main(String[] args) { Scanner sca = new Scanner(System.in); int n = sca.nextInt(); if (n % 2 == 1) { System.out.print("7"); n -= 2; } while (n > 1) { System.out.print("1"); n -= 2; } System.out.println(); } }