main = interact $ unlines . map (show' . ab_problem . map read . words) . lines
 where show' (d,m,f) = show d ++ " " ++ show m ++ " " ++ show f
ab_problem [a,b] = (div a b, mod a b, (fromIntegral a)/(fromIntegral b))