Previous Number 4#8905

Previous Number 4

1 second
64 megabytes
Very easy

The program must input a natural number from the console and find the number preceding that is not divisible by , , and .

Input

A natural number .

Output

The answer to the problem.

Examples

Example 1

Loading
Loading