import Text.Printf

main = getLine >>= putStrLn . solve . input

-- 入力
input :: String -> [Int]
input = map read . words

-- 解答
solve [a, b] = printf "%d %d %.8f" x y z
  where
    (x, y, z) = (div a b, mod a b, (fromIntegral a / fromIntegral b) :: Double)
solve xs = "Error parsing input"
