import Text.Printf

main = do
  s <- getLine
  let [a, b] = map read $ words s :: [Integer]
  let x = a `div` b
  let y = a `mod` b
  let z = fromIntegral a / fromIntegral b :: Double
  putStrLn $ show x ++ " " ++ show y ++ " " ++ printf "%.6f" z