7 thieves rob a diamond merchant of some diamonds.
They return to their den and go off to sleep.
When everybody was sleeping, two of them woke up and decided to divide the diamonds equally among themselves.
But when they divided the diamonds equally, one diamond is left.
So they woke up the 3rd thief and tried to divide the diamonds equally again but still one diamond was left.
Then they woke up the 4th thief to divide the diamonds equally again, and again one diamond was left.
This happened with the 5th and 6th thief – one diamond was still left.
Finally, they woke up the 7th thief and this time the diamonds were divided equally.
How many diamonds did they steal in total?