-- Computation - A / B Problem

import Control.Applicative
import Text.Printf

main :: IO ()
main = do
  xs <- map read . words <$> getLine
  let (d, r, f) = calc xs
  printf "%d %d %f" d r f
  putStrLn ""

calc :: [Int] -> (Int, Int, Double)
calc [a, b] = (div a b, mod a b, (fromIntegral a) / (fromIntegral b))

