Feedback | If you notice incorrect translations in Contester, please let author know.
|
|
Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Prepared by: Ilir Capuni.
Difficulty Alpha
Puzzle
Write a program that for a given integer n (1≤n ≤200,000)
determines the integers a and b such that
n = a*b*(a+b) or write "Impossible" if that is not possible.
Input
The first line contains a single number N
where 2 < N < 100.
| Sample 1 |
Sample 1 |
Input |
30 |
65 |
Output |
1 5
2 3
3 2
5 1 |
impossible |
Для отправки решений необходимо выполнить вход.
|