import java.util.Scanner; public class No83 { public static void main(String[] args) { int n; Scanner sc = new Scanner(System.in); n = Integer.parseInt(sc.next()); sc.close(); No83Solver sl = new No83Solver(); sl.maxnum(n); } } class No83Solver{ final int NINE = 6; final int EIGHT = 7; final int SEVEN = 3; final int SIX = 6; final int FIVE = 5; final int FOUR = 4; final int THREE = 5; final int TWO = 5; final int ONE = 2; final int ZERO = 6; public void maxnum(int n){ String numstring = ""; if (n % 2 == 1) { numstring = "7"; n = n - SEVEN; } while(n > 0) { numstring = numstring + "1"; n = n - ONE; } System.out.println(numstring); } }