import Control.Applicative
import Data.Fixed

data E5 = E5
instance HasResolution E5 where
    resolution _ =
	100000
type Precise5 = Fixed E5

main = do
  [a, b] <- map (\x -> read x :: Int) . words <$> getLine
  putStr $ show $ a `div` b
  putStr " "
  putStr $ show $ a `mod` b
  putStr " "
  putStr $ show $ (fromIntegral a :: Precise5) / (fromIntegral b :: Precise5)