Remainder#953

Remainder

1 second
128 megabytes
Very easy

Find the remainder after dividing the last digit by the first digit in a given positive three-digit integer.

Input

A single positive three-digit integer .

Output

Print the required remainder.

Examples

Example 1

Loading
Loading