The number of diagonals in an -gon is at least . What is the smallest possible value that can take?

Contains no more than lines. Each line contains a positive integer (N \le 10^{15}) — the minimum number of diagonals. The last line contains and should not be processed.
For each test case, print its number and the smallest possible value of — the number of sides of the polygon.
Example 1