import java.util.Scanner; class MaxMatching { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.print("数値を入力してください:"); int input = scan.nextInt(); String ret = ""; int mod = input % 2; if (mod == 0) { int quot = input / 2; for (int i = 0; i < quot; i++) { ret += "1"; } } else { ret += "7"; int quot = (input - 3) / 2; for (int i = 0; i < quot; i++) { ret += "1"; } } System.out.println(ret); } }