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