Funding#5093

Funding

1 second
64 megabytes
Very easy

The government of the Republic is currently concerned about the situation in the heavy industry sector. At the latest Senate meeting, it was decided to allocate credits from the state budget for this priority. A special Commission, consisting of incorruptible and impartial officials, was formed to oversee the use of these funds for construction purposes.

At their first meeting, the Commission decided to distribute the allocated funds equally among its officials, with each official receiving an integer number of credits (as large as possible). Any credits remaining after this distribution are to be spent directly on the development of heavy industry.

Your task is to determine how many credits will actually be allocated for the development of heavy industry according to this arrangement.

Input

The input contains a single integer — the total amount of funds allocated for the development of heavy industry (0 \le X \le 10^{100}).

Output

Output the number of credits that will be spent directly on the development of heavy industry according to the Commission's decision.

Examples

Example 1

Loading
Loading