import Control.Monad
import Control.Applicative

main = do
  [x,y] <- map read . words <$> getLine

  putStrLn $ (show $ x `div` y) ++ " " ++ (show $ x `mod` y) ++ " " ++ (show $ fromIntegral(round((fromIntegral(x) / fromIntegral(y)) * 100000.0))/100000.0)