import re S = input() reg = re.compile('^\d+[+*]\d+') s = S.translate(str.maketrans('*+', '+*')) while m := reg.match(s): t = m.group(0) x = eval(t) s = str(x) + s[len(t):] print(s)