#arc111a. [arc111_a]Simple Math 2
[arc111_a]Simple Math 2
Problem Statement
Given positive integers and , find the remainder when is divided by .
What is ? denotes the greatest integer not exceeding . For example:
- $\\lfloor \\frac{100}{3} \\rfloor = \\lfloor 33.33... \\rfloor = 33$
Constraints
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
1 2
Sample Output 1
1
We have , so we should print the remainder when is divided by , that is, .
Sample Input 2
2 7
Sample Output 2
0
Sample Input 3
1000000000000000000 9997
Sample Output 3
9015