import Control.Applicative
main = solve

solve = do
    n <- fmap (read :: String -> Integer) . words <$> getLine
    let a = n !! 0
        b = n !! 1
    putStrLn $ (show $ a `div` b) ++ " " ++ (show $ a `mod` b) ++ " " ++ (show $ (fromInteger a) / (fromInteger b))