using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int twoMs = 0; twoMs = N / 2; N %= 2; if (0 < N) { twoMs -= 2; } for (int i = 0; i < N / 3; i++) { Console.Write("7"); } for (int i = 0; i < twoMs; i++) { Console.Write("1"); } Console.WriteLine(); } }