import Text.Printf

solve :: [Int] -> String
solve [a, b] = printf "%d %d %.5f" (a `div` b) (a `mod` b) (fromIntegral a / fromIntegral b :: Double)

main :: IO ()
main = getLine >>= putStrLn . solve . map read . words