import re S = raw_input() operands = map(int, re.split(r"[+*]", S)) operators = filter(lambda x: not x.isdigit(), S) ans = operands.pop(0) for x, y in zip(operands, operators): if y == '+': ans *= x else: ans += x print ans