import Control.Applicative

main :: IO ()
main = do
  xs <- (map read . words) <$> getLine
  putStrLn $ solve xs

solve :: [Int] -> String
solve xs = show (a + b) ++ " " ++ show (mod a b) ++ " " ++ show (fromIntegral(a) / fromIntegral(b))
  where a = xs !! 0
        b = xs !! 1
  