main = do
  line <- getLine
  let 
    [a,b] = map read $ words line :: [Integer]
    in do 
      putStrLn $ (show $ div a b) ++ " " ++ (show $ mod a b) ++ " " ++ (show $ (fromInteger a::Float) / (fromInteger b::Float))

