using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int Matti = int.Parse(s); int Keta = Matti / 2; string Ans = string.Empty; Ans = Matti % 2 == 1 ? "7" : "1"; for(int Loop = 1; Loop < Keta; Loop++) { Ans = Ans + "1"; } Console.WriteLine(Ans); } }