Konajya is learning how to factor polynomials. Her homework assignment consists of 1 3 9
). Luckily, you know that each polynomial only has real integer roots. Because she is too lazy to factor them by herself, she decided to give this problem to you, so you can do it for her!
Constraints
All roots are integers whose absolute value is less than or equal to
The polynomial evaluated at
Subtask 1 [5%]
Subtask 2 [10%]
Subtask 3 [25%]
Subtask 4 [60%]
No additional constraints.
Input Specification
On the first line, there is one integer,
The next
Output Specification
Output a total of
Line
Sample Input
3
2 2 -6 4
2 1 6 9
2 1 0 -9
Sample Output
1 2
-3 -3
-3 3
Comments