using System; using System.Collections.Generic; using System.Linq; //No.353 ヘイトプラス class Program { static string InputPattern = "InputX"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("1 2"); //3 } else if (InputPattern == "Input2") { WillReturn.Add("765 346"); //1111 } 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]; Console.WriteLine(A - (-B)); } }