s = gets.chomp n = s.size t = s[0, 3] if ["995", "996", "997", "998", "999"].include?(t) puts "1.0*10^#{n}" else hoge = "%1.1f" % ((t.to_f+5)/100) puts "#{hoge}*10^#{n-1}" end