There is no involute formulation concerning factitiously activity of SKB Kontur in this problem. Moreover, there is no formulation at all.
Input
There is the only integer S, 1 ≤ S ≤ 109.
Output
Your program is to output two positive integers
A and
N
separated with a space such that:
- S = A + (A + 1) + … + (A + N − 1).
- You are to choose a pair with the maximal possible value of N.
Sample
Notes
Problem Author: Leonid Volkov
Problem Source: USU Open Collegiate Programming Contest October'2001 Junior Session