using System; namespace No83_MaximumMatching { internal class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string result = n % 2 == 0 ? "1" : "7"; for (int i = 0; i < (n - 2) / 2; i++) { result += "1"; } Console.WriteLine(result); } } }