n students divide k apples as evenly as possible so that the difference is no more than 1. How many students get fewer apples?
Two integers: n and k.
Print how many students got fewer apples than others.
Input #1
7 30
Output #1
5
Input #2
7 28
Output #2
0
Sign in to submit your solution and save your progress.