import Control.Applicative
import Text.Printf
readDigits = map read <$> words <$> getLine :: IO [Int]
main = do
    ab@[a,b] <- readDigits
    let d = a `div` b
    let r = a `mod` b
    let f = (\[a,b] -> a / b) $ map realToFrac ab
    printf "%d %d %.5f\n" d r (f :: Double)