import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class No83 { public static void main(String[] args) throws IOException{ //最大マッチング int N = Integer.parseInt(readStr()[0]); StringBuilder sb = new StringBuilder(); if(N % 2 == 1){ sb.append("7"); N -= 3; } for(int i = 0 , m = N / 2;i < m;i++) { sb.append("1"); } System.out.println(sb); } public static String[] readStr() throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList list = new ArrayList<>(); do { list.add(br.readLine()); }while(br.ready()); br.close(); String[] text = new String[list.size()]; list.toArray(text); return text; } }