using System; using System.Collections.Generic; class Program { static string InputPattern = "Input2"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("0"); //1 } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List InputList = GetInputList(); int X = int.Parse(InputList[0]); Console.WriteLine(X == 0 ? 1 : 0); } }