Competitions
PP1 Week 1 Introduction Part 2
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.
Input example #1
198
Output example #1
0