using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace Application { class MainClass { public static void Main(string[] args) { new MainClass().Calc(); } public MainClass() { } public void Calc() { var r = Console.ReadLine(); var m = Regex.Match(r, "^([-+]?[0-9]+)([-+])([-+]?[0-9]+)"); var A = int.Parse(m.Groups[1].Value); var op = m.Groups[2].Value; var B = int.Parse(m.Groups[3].Value); if (op == "+") Console.WriteLine(A - B); else Console.WriteLine(A + B); } void WriteLine(object o) { System.Console.WriteLine(o.ToString()); } void WriteEnum(IEnumerable l) { WriteLine(JoinList(l)); } string JoinList(IEnumerable l) { return string.Join(" ", l.Select(x => x.ToString()).ToArray()); } } }