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