S = raw_input() total = 0 for s in map(lambda s: s.split("+"), S.split("*")): total += int(s[0]) for si in s[1:]: total *= int(si) print total