logo AlgoBeat OnlineJudge
登录 注册

#216159. [ICPC 2023 NAC] Power of Divisors

内存限制:2048 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

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.

样例

样例输入 1

15625

样例输出 1

25

样例输入 2

64000000

样例输出 2

20

样例输入 3

65536

样例输出 3

-1