import Text.Printf

main = do
    ss <- getLine
    let ns = map (\x -> read x:: Int) $ words ss
    let (a,b) = (ns!!0, ns!!1)
    let d = a `div` b
    let r = a `mod` b
    let f = ((fromIntegral a) / (fromIntegral b) :: Double)
    printf "%d %d %.5f\n" d r f
