using System; using System.Collections.Generic; using System.Linq; public class yukicoder { public static string match(int n) { if(n == 0) { return ""; } System.Text.StringBuilder sb = new System.Text.StringBuilder(); for (int i = 1; i <= n / 2; i++) { sb.Append("1"); } return sb.ToString(); } public static void Main() { int a = int.Parse(Console.ReadLine()); if(a % 2 == 0) { Console.WriteLine(match(a)); } else { Console.WriteLine("7" + match(a - 3)); } } }