Atharva hates modulo (long story). Due to this hate, he learned everything possible about modulo and has been self-named King Modulus. He wants you to share his frustration of modulo by giving you a task. Given two integers and , find the value of . The answer for can be viewed as the remainder of a division, where is the dividend and is the divisor. The result of a modulo operation is always non-negative. Here is an example of how the modulo operation works:
For example, is:
A single line containing and separated by a single space.
One line containing the result of .
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2