S = input().split('+') ans = 1 for s in S: n = s.split('*') ans *= int(n.pop(0)) for i in n: ans += int(i) print(ans)