Execution time limit is 1 second

Runtime memory usage limit is 128 megabytes

$n$ schoolchildren divide $k$ apples evenly, the residue remains in the basket. How many apples remains in the basket?

Two integers $n$ and $k$ not greater than $1500$ — rarely happens in school more pupils, and where to find such a basket?

Print the number of apples in the basket.

Input #1

Answer #1

Input #2

Answer #2