Print every run of two or more consecutive positive integers that sums to N, ordered by starting value.
Find every way to write a positive integer NNN as a sum of two or more consecutive positive integers.
For example, N=9N = 9N=9 has two such sums: 9=2+3+49 = 2 + 3 + 49=2+3+4 and 9=4+59 = 4 + 59=4+5.
The first line contains the positive integer NNN (3≤N≤10103 \le N \le 10^{10}3≤N≤1010).
For each run of consecutive positive integers whose sum is NNN, print the first addend and the last addend on one line, separated by a space.
Print the runs in increasing order of the first addend. Every NNN given in the input has at least one such run.
The sum of kkk terms starting at aaa equals ka+k(k−1)2ka + \frac{k(k-1)}{2}ka+2k(k−1).