module Main where

import Data.Functor

main :: IO ()
main =  do
  { [a,b] <- getInts
  ; putStrLn $ unwords $[show$a`div`b,show$a`mod`b,show$(fromIntegral a/fromIntegral b :: Double)]
  }

getInts :: IO [Int]
getInts = map read . words <$> getLine