import Control.Applicative

import Text.Printf

main = do
  [x,y] <- map read . words <$> getLine
  putStrLn . toString . calc $ (x,y)

calc :: (Int,Int) -> (Int,Int,Float)
calc (x,y) = (div x y,rem x y,fromIntegral x / fromIntegral y)

toString :: (Int,Int,Float) -> String
toString (x,y,z) = printf "%d %d %f" x y z