import           Control.Applicative
import           Text.Printf

main :: IO ()
main = do
    [a,b] <- map read . words <$> getLine :: IO [Int]
    let d = a `div` b
        r = a `rem` b
        f = fromIntegral a / fromIntegral b :: Double
    printf "%d %d %.5f\n" d r f
