import Control.Applicative
import Control.Monad
import Text.Printf

divition :: [Int] -> IO ()
divition [a, b] = let divnum = a `div` b
                      remainder = a `mod` b
                      doublenum = realToFrac a / realToFrac b
                  in printf "%d %d %.5f" divnum remainder (doublenum :: Double)

main = do
    line <- getLine
    divition $ read <$> words line

