#B4257. Library Books and the Hungry Mouse

    ID: 11914 Type: Default 1000ms 256MiB

Library Books and the Hungry Mouse

Library Books and the Hungry Mouse

In a library, there are n books. Unfortunately, a mouse has invaded the library. The mouse eats one complete book every x hours and will not start another book until it has finished the current one. Given a time period of y hours, determine how many complete books remain in the library.

The number of books eaten is given by: $$\text{eaten} = \left\lfloor \frac{y}{x} \right\rfloor$$ and the remaining number of books is: $$\max(0, n - \text{eaten})$$.

inputFormat

Input contains three space-separated integers: n, x, and y. Here, n is the total number of books, x is the number of hours required for the mouse to eat one book, and y is the total number of hours elapsed.

outputFormat

Output a single integer representing the number of complete books remaining in the library after y hours.

sample

10 2 8
6