n,k=gets.split.map(&:to_i) puts (0..n).map {|it| 1.0/((n+1)*k)*it*k}.sum