using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Numerics; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using static System.Console; namespace yukicoder { class Program { static void Main() { var n = int.Parse(Console.ReadLine()); var ans = ""; while(n >= 1) { if (n % 2 == 0) { ans += "1"; n -= 2; } else { ans += "7"; n -= 3; } } Console.WriteLine(ans); } } }