How many nuts will be left after division

Report a typo

N squirrels found K nuts and decided to split them equally. Find how many nuts will be left after each of the squirrels takes an equal amount of nuts.

Input data format

There are two positive integers N and K, each of them is not greater than 10000.

Sample Input 1:

3
14

Sample Output 1:

2
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic