import Text.Printf

main = getLine >>=
        \l -> let a:b:_ = map read . words $ l :: [Int]
              in let resDiv = a `div` b
                     resMod = a `mod` b
                     resDivF = ((fromIntegral a) :: Double) / ((fromIntegral b) :: Double) :: Double
                     in do
                        printf "%d %d %.5f\n"  resDiv resMod resDivF