import java.util.Scanner; class MaxMatching { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int input = scan.nextInt(); String ret = ""; int loop = input / 2 -1; for (int i = 0; i < loop; i++) { ret += "1"; } if (input % 2 == 0) { ret = "1" + ret; } else { ret = "7" + ret; } System.out.println(ret); } }