Find the remainder after dividing the last digit by the first digit in a given positive three-digit integer.
A single positive three-digit integer n.
Print the required remainder.
Example 1