using System; using System.Collections.Generic; class Program { static string InputPattern = "Input4"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("2"); //1 } else if (InputPattern == "Input2") { WillReturn.Add("3"); //7 } else if (InputPattern == "Input3") { WillReturn.Add("4"); //11 } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List InputList = GetInputList(); int N = int.Parse(InputList[0]); //偶数の場合 if (N % 2 == 0) { Console.WriteLine(new string('1', N / 2)); } else { //奇数の場合 Console.WriteLine("7" + new string('1', N / 2 - 1)); } } }