import Text.Printf
import Data.Ratio
main= getLine >>= putStrLn . unwords . solve . map read . words

solve :: [Integer]->[String]
solve (a:b:_) = [show $ div a b, show $ mod a b, printf "%.5f" $ ((fromIntegral a) / (fromIntegral b)::Double)]