Multiples#418

Multiples

1 second
128 megabytes
Medium (≈1350)

Find the number from to inclusively such that its factorization into prime factors the number of factors is maximized. If there are several such numbers, choose the maximum of them.

For example, if n = 7, the answer is , as the biggest number that has in its factorization two primes and .

Input

One integer n\:(1 \le n \le 2^{31} - 1).

Output

Print the required number.

Examples

Example 1

Loading
Loading