Two numbers and the four actions
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Over two positive integers were executed the following four steps:
they were added;
the less number was subtracted from the larger;
they were multiplied;
the bigger number was divided by the smaller.
The results were added — and the number was obtained. Find all such pairs of numbers.
Input
One positive integer .
Output
Print on a separate lines the pairs of integers , satisfying the problem. Couples must be ordered by increasing . If there is no pair of numbers satisfying the condition, print "NO SOLUTION".
Examples
Input #1
Answer #1
Input #2
Answer #2
Input #3
Answer #3
Submissions 1K
Acceptance rate 18%