The number of diagonals of an -gon is not less than . What is the minimum possible value of ?
Contains less than lines. Each line contains a positive integer that indicates the minimum possible number of diagonals. Input is terminated by a line with one that should not be processed.
For each test case produce one line that contains serial number and the minimum possible value for (number of sides).