stat = raw_input() for i, s in enumerate(stat): if(s.isdigit() == False): if(i != 0): op = "" if(s == "+"): op = "-" else: op = "+" stat = stat[:i] + op + stat[(i + 1):] break print eval(stat)