n = gets.chomp i = n[0..2].to_i if i < 995 puts "#{i.round(-1).to_f / 100}*10^#{n.size - 1}" else puts "1.0*10^#{n.size}" end