import Control.Applicative
import Control.Monad
import Data.List
import Text.Printf
rInt s = read s :: Int
 
main = do
   [a, b] <- map rInt . words <$> getLine
   putStr $ unwords $ (map show [div a b, mod a b]) 
   putChar ' '
   printf "%.8f\n" ((fromIntegral a) / (fromIntegral b) :: Double)