You are given two integers and . You have to subtract from until becomes less than or equal to . See the procedure below.
while (n > m) {
n = n - m;
}
The only line in the input contains and ().
Print after the end of subtraction.
Input | Output |
---|---|
2 1 | 1 |
Input | Output |
---|---|
100 10 | 10 |