using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string ans = (n % 2 == 0 ? "1" : "7") + new string('1', (n - 2) / 2); Console.WriteLine(ans); } }