import Control.Applicative

import Text.Printf
    (printf)
    
solve :: Int -> Int -> (Int, Int, Float)

solve a b
    = (d, r, f) where
        d = div a b
        r = mod a b
        f = fromIntegral a / fromIntegral b

input :: Read a => IO [a]

input
    = map read.words <$> getLine

output :: (Int, Int, Float) -> String

output (d, r, f)
    = printf "%d %d %.5f" d r f
    
main :: IO ()
    
main
    = do
        [a, b] <- input
        putStrLn $ output $ solve a b