eolymp
bolt
Try our new interface for solving problems
Problems

Remainder

Remainder

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

Input

One positive three-digit integer.

Output

Print the desired remainder.

Time limit 1 second
Memory limit 128 MiB
Input example #1
198
Output example #1
0