import Data.Function
import Text.Printf

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