import Control.Applicative
import Data.Fixed (Pico)

readInt s = read s :: Int
main :: IO ()
main = do
    [a,b] <- map readInt . words <$> getLine
    putStr $ show  (a `div` b) ++ " "
    putStr $ show  (a `mod` b) ++ " "
    putStrLn . show $ ((fromIntegral a / fromIntegral b) :: Pico)
