#00013F

Sum of seq numbers

There is no involute formulation concerning factitiously activity of SKB Kontur in this problem. Moreover, there is no formulation at all.


InputThere is the only number N, 0 < N ≤ 10^9.

OutputYour 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.

Input:
14
Output:
2 4

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.