import re s = input() op = [] for i in s: if i == "*" or i == "+": op.append(i) t = re.split("[+*]", s) ans = int(t[0]) for i in range(len(op)): if op[i] == "+": ans *= int(t[i+1]) else: ans += int(t[i+1]) print(ans)