import Control.Applicative
import Text.Printf

main :: IO ()
main = do
  xs <- (map read . words) <$> getLine
  putStrLn $ solve xs

solve :: [Int] -> String
solve xs = printf "%d %d %.10f" (a `div` b) (mod a b) (((fromIntegral a) / (fromIntegral b)) :: Double) 
  where a = xs !! 0
        b = xs !! 1
  