Prime Prime Power

No attempts yetTime limit5sMemory limit128 MB

Problem

We call a number a prime prime power when it can be written as aba^b where both the base aa and the exponent bb are prime. For example, 25=5225 = 5^2 and 27=3327 = 3^3 are prime prime powers because 5,35, 3 are prime bases and 2,32, 3 are prime exponents. Given two integers nn and kk, find the kk-th smallest prime prime power that is strictly greater than nn.

Input

The only line contains two integers nn and kk separated by a space (1n10181 \le n \le 10^{18}, 1k100,0001 \le k \le 100{,}000).

Output

Print a single integer mm, the kk-th smallest prime prime power that is strictly greater than nn.