Student(s) of Last Bench

Time Limit: 1 sec

**The Problem**

In a classroom, there is a teacher and several students. If you know the total number of the people in a classroom and the maximum numbers of student sit in a bench, can you calculate the number of student(s) sit in last bench? Students basically try to sit on the front benches if it’s possible.

**The Input**

Input file consists of several test cases. Each test case contains a line and each line contains two integers denoted the total number of people in the classroom **T (0<=T<=100)** and maximum number of students sit in a bench **M (1<=M<=10).** Input is terminated by **EOF**.

**The Output**

For each test case, you have to print out the number of student(s) in the last bench in a separate line.

**Sample Input**

44 5

**Sample Output**

3

[School Level]

Inter School & College Programming Contest (ISCPC) 2015

Problem Setter: Md. Helal Uddin & Hasnayn Ahmed Shakil