#P51. [KBC004C] Equation
[KBC004C] Equation
Source
This problem is adapted from Long Long OJ. All rights reserved.
Attention
The time limit for this problem is 0.1 seconds, and the memory limit is 8 MB.
Problem Description
Find all pairs (where ) such that , and output them in ascending order of (if is the same, output in ascending order of ).
If no such pairs exist, output No.
Input Format
A single line containing an integer .
Output Format
Output all pairs satisfying in ascending order of (if is the same, output in ascending order of ).
If no such pairs exist, output No.
Samples
11
1 5
2 3
3 2
5 1
6
No
Data Range
.