import Control.Applicative
import Control.Monad
import Data.Char
import Text.Printf

main :: IO () 
main = do
      [a,b] <- map read . words <$> getLine 
      let  d = (truncate(a::Double)) `div` (truncate(b::Double))  
           r = (truncate(a::Double)) `mod` (truncate(b::Double)) 
           f = a / b 
      putStr $ show d
      putStr " "
      putStr $ show r
      putStr " "
      printf "%.5f" (f :: Double)
