#arc106a. [arc106_a]106
[arc106_a]106
Problem Statement
Given is an integer . Determine whether there is a pair of positive integers such that , and find one such pair if it exists.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If there is no pair that satisfies the condition, print -1
.
If there is such a pair, print and of one such pair with space in between. If there are multiple such pairs, any of them will be accepted.
Sample Input 1
106
Sample Output 1
4 2
We have , so satisfies the condition.
Sample Input 2
1024
Sample Output 2
-1
Sample Input 3
10460353208
Sample Output 3
21 1