import java.io.BufferedInputStream; import java.io.IOException; import java.lang.reflect.Array; import java.math.BigDecimal; import java.math.BigInteger; import java.util.*; import java.util.Map.Entry; public class Main { public static final int C = 1000000007; //static int map[][]; //static int N; //static int M; //static int tic[][]; //static int dp[][]; //static int max; //static int set[]; //static int p[]; //static ArrayList> al; //static int a[][]; //static ArrayList> al; //static String a[]; //static String str; static int[] mach = new int[] {6, 2, 5, 5, 4, 5, 6, 3, 7, 6}; public static void main(String[] args) { //StringBuilder sb = new StringBuilder(); BufferedInputStream bs = new BufferedInputStream(System.in); Scanner sc = new Scanner(bs); //String str = sc.next(); int n = sc.nextInt(); String ans = ""; while (n > 1) { if (n == 3) { ans = 7 + ans; n -= 3; } else { ans = 1 + ans; n -= 2; } } System.out.println(ans); } }