n = gets.chomp.to_i puts format("%.6f", 1.to_f / n)