eolymp
bolt
Try our new interface for solving problems
Problems

Product

Product

Peter and Vasyl prepared for the certification by topic: "Multiplication". Peter asked a product of all positive integers 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$. \InputFile One number --- product of integers from $a$ to $b~(1 < a \le b \le 10000)$. \OutputFile Print two numbers $a$ and $b$.
Time limit 1 second
Memory limit 128 MiB
Input example #1
60
Output example #1
3 5