puts ([""]+gets.split(/(\+|\*)/)).each_slice(2).inject(""){|s,r|eval(s+r*"").to_s}