import Text.Printf

solve1 a b = (d,r,f)
  where
    d = a `div` b
    r = a `mod` b
    f = (toDouble a) / (toDouble b)

toDouble :: Int -> Double
toDouble x = fromInteger $ toInteger x

main = do
  temp <- getLine
  let [a,b] = map read . words $ temp
      (d,r,f) = solve1 a b
  printf "%d %d %.10f\n" d r f

