a = gets.to_i x=a.to_s.split('').size-1 y = (a.round(-x)/ 10**x).to_f.round(1) if y >= 10 x += 1 end puts "#{y}*10^#{x}"