import Control.Applicative
import Text.Printf

solver :: Int -> Int -> Double
solver a b = fromIntegral a / fromIntegral b


main :: IO()
main = do
  (a:b:_) <- map (read :: String -> Int) . words <$> getLine
  printf "%d %d %.5f\n" (a `div` b) (a `mod` b) (solver a b)