using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("1200 1350"); //+150 } else if (InputPattern == "Input2") { WillReturn.Add("1350 1200"); //-150 } else if (InputPattern == "Input3") { WillReturn.Add("1500 1500"); //0 } else if (InputPattern == "Input4") { WillReturn.Add("2179 2218"); //+39 } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List InputList = GetInputList(); int[] wkArr = InputList[0].Split(' ').Select(X => int.Parse(X)).ToArray(); int A = wkArr[0]; int B = wkArr[1]; int Answer = B - A; if (Answer > 0) Console.WriteLine("+{0}", Answer); else Console.WriteLine("{0}", Answer); } }