import Text.Printf

ft (x,y,z) =
  printf "%d %d %.5F\n" x y z

abp :: [Int] -> (Int, Int, Double)
abp (a:b:_)
  = ( div a b, mod a b, (fromIntegral a) / (fromIntegral b))

main = do
  ab <- getLine
  putStrLn $ ft $ abp $ map (read :: String -> Int) $ words ab