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 c1 = 0; int c2 = 0; if(n % 2 == 0){ c1 = n / 2; for(int i = 0;i < c1;++i){ m += Math.pow(10, i); } }else{ c1 = n / 2 - 1; c2 = 1; m += 7 * Math.pow(10, c1); for(int i = 0;i < c1;++i){ m += Math.pow(10, i); } } System.out.println(m); } }