import Text.Printf
main :: IO()
main = do
  inputs <- getLine
  let [a,b] = map (\x -> read x :: Int) $ words inputs
  printf "%d %d %.6f\n"
             (a`div`b)
             (a`mod`b)
             ((fromRational (fromIntegral a)/(fromIntegral b))::Double)