using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace foryuki { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string ans = ""; if (N % 2 == 1) { ans += "7"; N -= 3; } else { ans += "1"; N -= 2; } while (N > 0) { ans += "1"; N -= 2; } Console.WriteLine(ans); } //------------------------------------------------------------- static int[] ConvertStringArrayToIntArray(string[] str) { int[] b = Array.ConvertAll(str, delegate(string value) { return int.Parse(value); }); return b; } static List ConvertStringArrayToIntList(string[] str) { var list = new List(); foreach (var c in str) { list.Add(int.Parse(c)); } return list; } } }