def main(): expression = input() if expression[0] in ("+", "-"): op_idx = min(expression.find("+", 1) % len(expression), expression.find("-", 1) % len(expression)) else: op_idx = min(expression.find("+") % len(expression), expression.find("-") % len(expression)) num1 = int(expression[:op_idx]) num2 = int(expression[op_idx+1:]) match expression[op_idx]: case "+": print(num1-num2) case "-": print(num1+num2) if __name__ == "__main__": main()