import Control.Applicative
import Data.Fixed

data E10=E10
instance HasResolution E10 where
        resolution _ = 10 ^ 10
type Hoge = Fixed E10

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) :: Hoge
          putStrLn $ (show d) ++ " " ++ (show r) ++ " " ++ (show f)