import           Control.Applicative
import           Text.Printf         (printf)

main :: IO ()
main = do
    [a, b] <- fmap read . words <$> getLine :: IO [Int]
    printf "%d %d %.5f\n"
        (a `div` b)
        (a `mod` b)
        (fromIntegral a / fromIntegral b :: Double)

