import Numeric
showF :: RealFloat a => a -> String
showF = flip (showFFloat Nothing) ""
main = do
  [a, b] <- fmap (map read . words) getLine :: IO [Int]
  print $ div a b
  print $ mod a b
  putStrLn $ showF $ (fromIntegral a) / (fromIntegral b)