eolymp
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.

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