import Text.Printf
main=do
  s<-getLine
  putStrLn $ solve $ map (read :: String ->Int) $ words s

solve::[Int]-> String
solve [a,b] =
  (show (a `div`b)) ++ " " ++ (show (a `mod` b)) ++ " " ++ s
  where c=(fromIntegral(a)/ fromIntegral(b)) :: Double
        s = printf "%.5f" c ::String