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