atcoder#ARC106A. [ARC106A] 106
[ARC106A] 106
Score : points
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.
106
4 2
We have , so satisfies the condition.
1024
-1
10460353208
21 1