import Control.Applicative

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