import Control.Applicative
import Data.List
import Text.Printf
main = do
    [a, b] <- (map read . words) <$> getLine
    putStr $ show $ div a b
    putStr " "
    putStr $ show $ mod a b
    putStr " "
    let f = fromIntegral a / fromIntegral b
    printf "%.8f" $ (f :: Double)
    putStrLn ""