eolymp
Competitions

Week 1 Introduction Part 2

Remainder

Time limit 1 second
Memory limit 128 MiB

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