import java.util.*; import java.math.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String out = ""; if(N % 2 == 1) { out ="7"; N -= 3; } for(int i = 0; i < N; i += 2) { out += "1"; } System.out.println(out); } }