import Control.Applicative
import Text.Printf

main = do 
	a:b:_ <- toIntList <$> getLine
	let	d = a `div` b
		m = a `mod` b
		fd = fromIntegral a / fromIntegral b
	putStr $ (show d) ++ " " ++ (show m) ++ " "
	printf "%f\n" (fd::Double)

toIntList :: String -> [Integer]
toIntList = map read . words

