import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No0083 { public static void main(String[] args){ try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){ int n = Integer.parseInt(br.readLine()); String str = new String(); for(int i=0; i<n/2-1; i++){ str += 1; } if(n%2 == 0){ str += 1; }else{ str = 7 + str; } System.out.println(str); }catch(IOException e){ e.printStackTrace(); } } }