import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); StringBuilder sb = new StringBuilder(); int roopCnt = n / 2; if(n % 2 != 0){ sb.append(7); roopCnt--; } for(int i = 0 ; i < roopCnt ; i++){ sb.append(1); } System.out.println(sb); } }