package main import . "fmt" func main() { var k float64 Scan(&k) var ans float64 for n:=float64(1); n < 1e6; n++ { ans += 1/n/(n+k) } Printf("%.10f\n", ans) }