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