import Control.Applicative
import Text.Printf
main = solve

solve = do
    n <- fmap (read :: String -> Int) . words <$> getLine
    let a = n !! 0
        b = n !! 1
    printf "%d %d " (a `div` b) (a `mod` b)
    printf "%f\n" ((fromIntegral a :: Double) / (fromIntegral b :: Double))