S = raw_input() N = len(S) def solve(h): for i in xrange(h,-1,-1): if S[i] == '+': return solve(i-1)*int(S[i+1:h+1]) elif S[i] == '*': return solve(i-1)+int(S[i+1:h+1]) else: return int(S[0:h+1]) print solve(N-1)