There is no involute formulation concerning factitiously activity of SKB Kontur in this problem. Moreover, there is no formulation at all.
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.