s = gets.chomp n = s.size x = (s[0] + '.' + s[1...n]).to_f.round(1) if x >= 10 x /= 10 n += 1 end a = '%1.1f' % x puts "#{a}*10^#{n-1}"