import text.printf
putTuple :: (Int,Int,Double) -> IO ()
putTuple (a,b,c)=printf("%d %d %f\n") a b c

main=getLine>>=putTuple.(\[a,b]->(a`div`b,a`mod`b,(fromIntegral a)/(fromIntegral b))).map (read ::String->Int).words