import Data.Function(on)
import Text.Printf(printf)

main :: IO ()
main = do
    input <- getLine
    let [a, b] = map read . words $ input
        d = a `div` b :: Int
        r = a `mod` b :: Int
        f = ((/) `on` fromIntegral) a b :: Double
    printf "%d %d %.8f\n" d r f