#P1128. [HNOI2001] 求正整数

[HNOI2001] 求正整数

Description

Given a positive integer nn, find the smallest positive integer mm that has nn distinct divisors.

For example: when n=4n=4, m=6m=6, because 66 has 44 distinct positive divisors 1,2,3,61, 2, 3, 6, and it is the smallest integer that has 44 divisors.

Input Format

The input contains exactly one line with a single integer representing nn.

Output Format

Output a single line with one integer: the smallest positive integer mm that satisfies the condition.

 4

6

Hint

Constraints

For 100%100\% of the testdata, it is guaranteed that 1n5×1041 \leq n \leq 5 \times 10^4.

Translated by ChatGPT 5