-- 1_4_A
import Text.Printf

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