using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static string[] GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("8 4"); WillReturn.Add("11101110"); //0.857142857142857 } else if (InputPattern == "Input2") { WillReturn.Add("8 4"); WillReturn.Add("11011001"); //0.833333333333333 } else if (InputPattern == "Input3") { WillReturn.Add("10 4"); WillReturn.Add("1001001001"); //0.6 } else { string wkStr; while ((wkStr = Console.In.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn.ToArray(); } static int mN; static int mK; static void Main() { List InputList = GetInputList().ToList(); int[] wkArr = InputList[0].Split(' ').Select(pX => int.Parse(pX)).ToArray(); mN = wkArr[0]; mK = wkArr[1]; return; } }