using System; using System.Collections.Generic; using System.Linq; class Magatro { static void Main() { int N = int.Parse(Console.ReadLine()); string ans = ""; while (true) { if (N == 0) { break; } if (N == 3) { ans ="7"+ans; N -= 3; } else { N -= 2; ans+="1"; } } Console.WriteLine(ans); } }