Dadas is going to eat bowls of ramen one by one. Fully cooking the -th bowl takes units of time.
For each bowl, Dadas waits for at most units of time. Therefore, the actual waiting time before eating the -th bowl is . Eating takes time, and only one bowl is prepared at a time.
Thus, the total time until all bowls are eaten is
It is guaranteed that there exists at least one positive integer for which the total time is exactly . Find the minimum such .
The input is given from Standard Input in the following format:
For each test case, print the minimum positive integer satisfying the condition on one line.
Each case is given in the following format:
| 2 | 70 | No additional constraints. |