using System; namespace Probrem043 { class Program { static void Main(string[] args) { var input = Console.ReadLine();//.Split(' '); var num = int.Parse(input); //var b = decimal.Parse(input[1]); //var ans = Math.Ceiling(b / a); var num2 = num; int one = 0; string ans = ""; for(int i = 0; i<num2;i++){ if(num < 2) break; num -= 2; one += 1; } if (num == 1) { one -= 1; ans = "7"; } for (int i = 0; i < one; i++){ ans += "1"; } Console.WriteLine(ans); } } }