- Time limit: 1.00 s
- Memory limit: 512 MB
Uolevi is designing a weird gas tank for a new car. Though the shape of the tank is strange, it's volume can be calculated by using only 2 of it's dimensions: and . The tank's volume is . The tank should hold as much gas as possible but not more than volume units. and are still not locked in place so Uolevi is tasked to find the optimal dimensions for the tank.
Input
A single line contains a single integer .
Output
Print the dimensions of the tank that has the greatest volume less than or equal to . If there are multiple answers, print any.
Constraints
- are all integers
Example 1
Input:
16
Output:
2 2
Example 2
Input:
778
Output:
12 4
Example 3
Input:
1000000000000
Output:
499998 4