Divisors#2794

Divisors

1 second
128 megabytes
Medium

Find the smallest positive integer that has exactly divisors.

Input

A positive integer (m \leq 2012) is given.

Output

Print the answer to the problem, or 0 if it is greater than 20^{12}.

Examples

Example 1

Loading
Loading