import Control.Applicative
import Data.List

main = do
  [a,b] <- map (read :: String -> Integer) . words <$> getLine
  putStrLn $ show ( a `div` b ) ++ " " ++ show ( a `mod` b ) ++ " " ++ show  (fromIntegral a / fromIntegral b)