{-# LANGUAGE ScopedTypeVariables #-}

import           Data.Functor
import           Text.Printf

main :: IO ()
main = solve =<< fmap read . words <$> getLine

solve :: [Integer] -> IO ()
solve [a,b] = printf "%d %d %f\n" d r f
  where
    (d,r) = a `divMod` b
    f :: Double = (/) (fromInteger a) (fromInteger b)


