import Text.Printf

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