import Control.Applicative

solver :: Int -> Int -> String
solver _ 0 = "Error"
solver a b =
  let d = a `div` b
      r = a `mod` b
      f = (fromIntegral a) / fromIntegral b
  in
      show d ++ " " ++ show r ++ " " ++ show f


main :: IO()
main = do
  (a:b:_) <- map (read :: String -> Int) . words <$> getLine
  putStrLn $ solver a b