import Data.Functor ((<$>))
import Numeric (showFFloat)

main = do
  [a, b] <- map read . words <$> getLine
  let typer = a :: Int
      d = a `div` b
      r = a `mod` b
      f = realToFrac a / realToFrac b :: Double
  putStrLn $ unwords $ map show [d, r] ++ [showFFloat Nothing f $ ""]

