import Text.Printf

main = do
    line <- getLine

    let [a, b] = map (\n -> read n :: Int) $ words line
    let (d, r) = a `divMod` b
    let f = (fromIntegral a :: Double) / (fromIntegral b :: Double)

    printf "%d %d %.5f\n" d r f

