import Data.Function(on)

main :: IO ()
main = do
    input <- getLine
    let [a, b] = map read . words $ input :: [Int]
        d = a `div` b
        r = a `mod` b
        f = ((/) `on` fromIntegral) a b
    putStrLn . unwords $ [show d, show r, show f]