import java.util.*; public class Main { public static void main(String[] args) { int o,p,q; int a = 0, b = 0,c=0; Scanner sc = new Scanner(System.in); // int[] test = new int[100000]; // int[] test2 = new int[1000]; // String str1 = sc.next(); int t = Integer.parseInt(sc.next()); b = t; String s = ""; String m = ""; while(true){ if(b<=1||b==3){ if(b==1||b==3) m += "7"; m += s; break; } if(b-2 >= 0){ s += "1"; b -= 2; } } // String str2 = sc.next(); /* int s = Integer.parseInt(sc.next()); int t = Integer.parseInt(sc.next()); int u = Integer.parseInt(sc.next()); */ /* int d = 0;     while(true){ int v = Integer.parseInt(sc.next()); test2[d] = v ; d++; } */ /* for(int i=0;i