import Text.Printf

main :: IO ()
main = do
    str <- getContents
    let inputs = [read word :: Integer | word <- words str]
    let a = head inputs
    let b = head $ tail inputs

    putStrLn $ show (a `div` b) ++ " " ++ show (a `mod` b) ++ " "
      ++ printf "%.10f" ((realToFrac a / realToFrac b) :: Double)