import Text.Printf

parseInts :: String -> [Int]
parseInts = map (\x -> read x :: Int) . words

divF :: Int -> Int -> Float
divF a b = fromIntegral a / fromIntegral b

main :: IO ()
main = do
    line <- getLine
    let
        [a, b] = parseInts line
        d = a `div` b
        r = a `mod` b
        f = a `divF` b
    printf "%d %d %f\n" d r f