import Control.Applicative
import Numeric

main = do
	[a,b] <- map (read::String->Integer) . words <$> getLine
	putStrLn $ show (a`div`b) ++ " " ++ show (a`mod`b) ++ " " ++ (showFFloat (Just 6) ((fromIntegral(a::Integer))/(fromIntegral(b::Integer))) "")