package main import "fmt" func main() { var N, K, sum int fmt.Scan(&N, &K) for i := 0; i <= N; i++ { sum += i } fmt.Println(float64(sum*K) / float64((N+1)*K)) }