
import Control.Applicative
import Text.Printf

main = do
  [a, b] <- (map read . words) <$> getLine ::IO [Int]
  printf "%d %d %.15f\n" (a `div`b) (a `mod` b) ((fromIntegral a / fromIntegral b) :: Double)