import Control.Applicative
import Data.List
main = do
    [a, b] <- (map read . words) <$> getLine
    let d = show $ div a b
    let r = show $ mod a b
    let f = show $ fromIntegral a / fromIntegral b
    putStrLn $ intercalate " " [d, r, f]