Please solve the programming task below using a self-contained code snippet in a markdown code block.

You are given an integer money denoting the amount of money (in dollars) that you have and another integer children denoting the number of children that you must distribute the money to.
You have to distribute the money according to the following rules:

All money must be distributed.
Everyone must receive at least 1 dollar.
Nobody receives 4 dollars.

Return the maximum number of children who may receive exactly 8 dollars if you distribute the money according to the aforementioned rules. If there is no way to distribute the money, return -1.
 
Please complete the following python code precisely:
```python
class Solution:
    def distMoney(self, money: int, children: int) -> int:
```