import re S = input() op = re.split('\d+', S) ope = re.split('[+*]', S) ans = int(ope[0]) j = 1 for i in range(len(op)): if op[i] == '*': ans += int(ope[j]) j += 1 elif op[i] == '+': ans *= int(ope[j]) j += 1 print(ans)