import Control.Applicative
import Numeric

main = do
    ss <- words <$>getLine
    let a:b:_ = [ read s | s <- ss] ::[Int]
    putStrLn $ show (div a b) ++" "++ show (mod a b) ++" "++ (showFFloat Nothing ((/) (fromIntegral a) (fromIntegral b))) ""