import java.util.Scanner object Problem222 { def main(args: Array[String]) { val sc = new Scanner(System.in) val expr = sc.next() val exprRegex = """^([\+\-]?[0-9]+)([\+\-])([\+\-]?[0-9]+)$""".r val exprRegex(x, op, y) = expr val result = op match { case "+" => x.toInt - y.toInt case "-" => x.toInt + y.toInt } println(result) } }