Division of the Treasure#6274

Division of the Treasure

1 second
64 megabytes
Very easy (≈850)

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.

Input

Two natural numbers and are provided (1 \le n < m \le 10^6).

Output

Print the total number of pirates.

Examples

Example 1

Loading
Loading