Problems
Remainder
Remainder
Find the remainder after dividing the last digit by the first in the given positive three-digit integer.
Input data
One positive three-digit integer.
Output data
Print the desired remainder.
Examples
Input example #1
198
Output example #1
0