Power of Divisors
시간 제한1초메모리 제한2048 MB
x가 10^18 이하로 주어질 때 n^f(n) = x를 만족하는 가장 작은 n을 구하거나, 없으면 -1을 출력한다. 여기서 f(n)은 n의 약수 개수다.
문제
Consider a positive integer . Let be the number of positive integer divisors of . For example, if then , since the divisors of are , , and .
Now, consider a positive integer . What is the smallest value of such that ?
입력
The single line of input contains a single integer (). This is the of the statement above.
출력
Output a single integer, which is the smallest value of such that , or if no such value of exists.