import Text.Printf

main = do
    givenstr <- getLine
    let [a,b] = (map (read :: String -> Integer) . words) givenstr
    putStrLn (printf "%d %d %.5f" (a `div` b) (a `mod` b) ((fromIntegral a :: Double) / fromIntegral b))