import Text.Printf
main = do
  ab_in <- (return . words) =<< getLine
  let a:b:[] = map (read::String->Integer) ab_in
  let (d,r) = a `divMod` b
  let f = (fromIntegral a / fromIntegral b) :: Double
  --putStrLn (show d ++ " " ++  show r ++ " " ++ show f)
  printf "%d %d %.10f" d r f

