eolymp
bolt
Try our new interface for solving problems
Problems

Divide the apples - 2

Divide the apples - 2

\includegraphics{https://static.e-olymp.com/content/ec/eca7ace958c9781867a01fb98ba7d6c05cad9d6d.jpg} $n$ schoolchildren divide $k$ apples evenly, the residue remains in the basket. How many apples remains in the basket? \InputFile Two integers $n$ and $k$ not greater than $1500$ --- rarely happens in school more pupils, and where to find such a basket? \OutputFile Print the number of apples in the basket.
Time limit 1 second
Memory limit 128 MiB
Input example #1
3
14
Output example #1
2
Input example #2
10
100
Output example #2
0