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("4"); //3 } else if (InputPattern == "Input3") { WillReturn.Add("13"); //12 } 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]); Console.WriteLine(N - 1); } }