Implemented divmod for all numbers