There are M gifts and N students. Count the dividing numbers so that the number of gifts from the following student is not greater than the amount of the previous student's gift
input 3 2 output 2
explain : There are 2 ways to choose : (3;0) and (2;1)