import re S = input() d = re.split(r"[+*]", S) d = list(map(int, d)) ope = re.split(r"[0-9]+", S)[1:-1] ans = d[0] for i in range(len(ope)): if ope[i] == '*': ans += d[i + 1] elif ope[i] == '+': ans *= d[i + 1] print(ans)