k = gets.to_i puts (1..100000).map { Rational(1, _1 * (_1 + k)) }.inject(:+).to_f + 1e-5