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; if (n % 2 == 0) { while (n > 0) { sum += (int) (1 * Math.pow(10, (n - 1)/ 2)); n -= 2; } } else { sum += (int) (7 * Math.pow(10, (n - 2)/ 2)); n -= 3; while (n > 0) { sum += (int) (1 * Math.pow(10, (n - 1)/ 2)); n -= 2; } } System.out.println(sum); } catch (IOException e) { e.printStackTrace(); } } }