Ms. Werhun was preparing factoring problems for her class when all of a sudden she spilled her tea all over her desk! Fortunately, the problems were saved, but now the answers are illegible! Your task is to help Ms. Werhun find the answers to her factoring problems.
Given two integers
Constraints
For each input
Input Specification
The first and only line of input will contain the two integers
Output Specification
Output
If there are multiple solutions, output the one with the smallest value of
Sample Input
Copy
3 2
Sample Output
Copy
1 2
Comments