package yukicoder; import java.util.Scanner; public class N83 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = 0; int c = n / 2; if(c >= 2){ for(int i = 1;i < c;++i){ m += Math.pow(10, i); } switch(n % 2){ case 0: m += 1; break; case 1: m += 7; break; } }else{ switch(n){ case 2: m = 1; break; case 3: m = 7; break; } } System.out.println(m); } }