import Data.Function

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