import Data.Functor( (<$>))
import Text.Printf( printf)

main = do
    [a,b] <- (read <$>) . words <$> getLine
    let
	(d,r) = a `divMod` b
	f::Double
	f = fromIntegral a / fromIntegral b

    putStr $ (show d)++" "++(show r)++" "
    printf "%.5f\n" f

