s=gets.chomp t=s.split(/[+*]/) r=s.split(/\d+/) r.shift r.each{|e| g=(e=="*")?"+":"*" t[1]=eval(t[0]+g+t[1]).to_s t.shift } puts t