Show#4244

Show

1 second
64 megabytes
Medium

The chief director of the show wants the participants to be able to line up in exactly different ways, with each lineup having the same number of people in each column.

Your task is to determine the minimum number of people, , required to achieve this. For example, if n = 3, you would need m = 4 people, as they can be arranged in , , and columns. If for a given , the number of people needed exceeds 10^9, you should inform the director that it is impossible to gather the required number of people.

Input

The input consists of a single line containing a natural number (1 \leq n \leq 1000).

Output

If the minimum number of people required for the show does not exceed 10^9, output this number . Otherwise, output .

Examples

Example 1

Loading
Loading