import Text.Printf(printf)
main = getLine >>= solve . map read . words

solve :: [Int] -> IO ()
solve (x:y:[]) = do
    printf "%d " (x `div` y)
    printf "%d " (x `mod` y)
    printf "%.5f\n" (x / y)
