using System; namespace Saidai_Matching { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); if (N % 2 == 1) { Console.Write('7'); N -= 3; } int onenum = N / 2; if (N < 100) { for (; onenum > 0; onenum--) { Console.Write('1'); } } else { string buf = "11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"; for (int roop = onenum / buf.Length; roop > 0; roop--) { Console.Write(buf); } for (int onenum_remain = onenum % buf.Length; onenum_remain > 0; onenum_remain--) { Console.Write('1'); } } Console.WriteLine(); } } }