import Numeric (showFFloat)

ab :: [Integer] -> String
ab [a, b] = unwords [show d,show r, showFFloat Nothing f' ""]
  where
    (d, r) = quotRem a b
    f' :: Double
    f'     = fromIntegral a / fromIntegral b

main :: IO ()
main = do
  s <- getLine
  putStrLn $ ab $ (map read . words) s