pirates divided a treasure of gold coins fairly: each pirate received their share according to rank and seniority. The youngest pirate took coins, and each subsequent pirate took one more coin than the previous pirate. The last pirate was the captain, who received twice as many coins as was initially planned for him. After the captain, there were no coins left.
The input contains two integers and (1 \leq a \leq 100, m < 15150).All input data are valid.
Output the number of pirates .
Example 1