import Text.Printf
main = do
    [a, b] <- fmap (map read . words) getLine
    putStr . unwords $ map show [div a b, mod a b]
    putStr " "
    printf "%.5f\n" ((fromIntegral a) / (fromIntegral b) :: Double)

