import java.util.*; import java.math.*; public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { int n = sc.nextInt(); int cnt = n/2; int d = n%2; String s = d == 1 ? "7" : "1"; for (int i = 1;i < cnt;i++) { s += "1"; } System.out.println(s); } }