import Numeric
main = do
    str <- getLine
    let (a:b:_) = map read $ words str
    let (d,r) = quotRem a b
    let f = fromIntegral a / fromIntegral b
    putStr $ show d
    putChar ' '
    putStr $ show r
    putChar ' '
    putStr $ showFFloat Nothing f ""
    putChar '\n'