import Text.Printf

main :: IO ()
main = do
	s <- getLine
	let [a, b] = map (read :: String -> Int) . words $ s
	printf "%d %d %.5f\n" (div a b) (mod a b) (((/) (fromIntegral a) (fromIntegral b)) :: Double)

