import Control.Monad
import Control.Applicative
import Numeric

main = do
  [a,b] <- map read . words <$> getLine
  let d = div a b :: Int
      r = mod a b 
      f = (realToFrac a) / (realToFrac b) :: Double
  putStrLn $ show d ++ " " ++ show r ++ " " ++ showFFloat (Just 5) f "" 