k=gets.to_i a=0.0 k.times do |i| a+=1.0/(i+1) end puts a/k