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

putTuple :: (Show a)=>(Show b)=>(float c)=>(a,b,c)->IO ()
putTuple (a,b,c)=putStrLn $ show a ++ " " ++ show b ++ " "++ showFFloat c
 