There is no involute formulation concerning factitiously activity of SKB Kontur in this problem. Moreover, there is no formulation at all.
There is the only number N, 1 ≤ N ≤ 10^9.
Your program is to output two positive integers A and P separated with a space such that:
1. N = A + (A + 1) + … + (A + P − 1).
2. You are to choose a pair with the maximal possible value of P.