This is how I'd do it. I'd declare 5 variables.
Write on them the amount of the sales.
Get the highest amount and depending on how big is it, divide it by multiples of 10 or 100.
Lets say...