import Control.Applicative
import Numeric

main :: IO ()
main = do
  xs <- fmap (map (read :: String -> Int) . words) getLine
  putStrLn $ unwords $ (map show $ [div, rem] <*> [xs!!0] <*> [xs!!1]) ++ [showFFloat (Just 8) ((fromIntegral $ xs!!0) / (fromIntegral $ xs!!1)) ""]

