import Control.Applicative

main = do [a,b] <- (map read) . words <$> getLine
          let d = a `div` b :: Int
          let r = a `mod` b :: Int
          let f = (realToFrac a) / (realToFrac b)
          putStrLn $ (show d) ++ " " ++ (show r) ++ " " ++ (show f)