Product
Peter and Vasyl prepared for the certification by topic: "Multiplication". Peter asked a product of all natural numbers from A to B, and Vasyl answered. Help to Vasyl to find A and B. if you have some solution, give that answer which have the least A.
Specifications
Input
One number, product of numbers. 1 < A ≤ B ≤ 10000.
Output
In one line we have two numbers A and B, which wrote through gap.
Problem information
Time Limit: 1 secondsMemory Limit: 64 MB
Balls for the passed test: 10
Complexity: 75% 51/202
Example
Example input60 |
Example output3 5 |
| ← Cycle shifts | Problems | The level of palindrome → |
