The pirates have successfully divided a treasure of gold coins among themselves, with each pirate receiving a share based on their rank and experience. The youngest pirate took one coin, and each following pirate took one more coin than the pirate before them. After the last pirate received their share, coins remained, which were set aside for future use.
Determine the total number of pirates.
Two natural numbers and are provided (1 \le n < m \le 10^6).
Print the total number of pirates.
Пример 1