Integer division by 5#10764

Integer division by 5

1 second
128 megabytes
Very easy

There are stones on the table. For coin, you can do one of the following operations:

What is the smallest number of coins you need to spend so that the number of stones on the table is divisible by ?

Please note that is divisible by any number, which means that if there are stones left on the table, then the condition of the problem is satisfied.

Input

One integer (0 \le n \le 10^9) — initial number of stones on the table.

Output

Print a single integer - the minimum number of coins that you need to spend so that the number of stones on the table is divisible by .

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

Note

In the first example, initially there are stones on the table. is divisible by , so no coins need to be spent.

In the second example, you can pay one coin and take one stone from the table. Then there will be stones on the table, and is divisible by .

In the third example, you can pay one coin and put another stone on the table (thus, there will be stones on the table), and then pay another coin and put another stone on the table, thus getting stones, which is divisible by .