Winnie the Pooh#1967

Winnie the Pooh

1 second
64 megabytes
Easy

Winnie the Pooh received a parcel containing liters of honey. First, he tried to pour it into barrels of liters each, but liter was left. Then he tried to pour it into barrels of liters each, and liters were left. He continued this way, and finally poured the honey into barrels of liters each, and N - 1 liters were left. Determine the minimal possible amount of honey that could have been sent to Winnie.

Input

The only line contains an integer (2 \leq N \leq 19).

Output

Print the required number .

Examples

Example 1

Loading
Loading