|
Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Prepared by: Ilir Capuni.
Сложность Альфа
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 |
Для отправки решений необходимо выполнить вход.
|