import Data.Functor ((<$>))
import Text.Printf (printf)

main :: IO ()
main = do
  [a,b] <- map (read :: String -> Int) . words <$> getLine
  let a' = fromIntegral a :: Double
      b' = fromIntegral b :: Double
  printf "%d %d %.5f\n" (a `div` b) (a `mod` b) (a' / b')

