A total of $2010$ coins are distributed in $5$ boxes. Initially, the quantities of coins in the boxes are consecutive natural numbers. Martha should choose and take one of the boxes, but before that, she can perform the following transformation any number of times: from a box with at least $4$ coins, she can transfer one coin to each of the other boxes.

What is the maximum number of coins that Martha can take away?

Let's think step by step and output the final answer within \boxed{}.
user