package net.ipipip0129.yukicoder.no83; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int mNumber = Integer.parseInt(br.readLine()); if (mNumber % 2 == 1) { System.out.print(7); mNumber -= 3; } for (int i = 0; i < mNumber / 2; i++) { System.out.print(1); } System.out.println(); br.close(); } }