{-# LANGUAGE ScopedTypeVariables #-}
main :: IO()
main = do
  [ n, m, d ] :: [ Double ] <- map read . words <$> getLine
  putStrLn $ show $ ( m - 1 ) * ( n - d ) / ( n ^ 2 ) * if d == 0 then 1 else 2
