N = gets.to_i ans = 0 1.upto(10) do |i| ans += Rational(1, i ** N) end puts "%.12f" % ans