#abc165d. [abc165_d]Floor Function
[abc165_d]Floor Function
Problem Statement
Given are integers , , and .
Find the maximum possible value of for a non-negative integer not greater than .
Here denotes the greatest integer not greater than the real number .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the maximum possible value of for a non-negative integer not greater than , as an integer.
Sample Input 1
5 7 4
Sample Output 1
2
When , $floor(Ax/B)-A×floor(x/B) = floor(15/7) - 5×floor(3/7) = 2$. This is the maximum value possible.
Sample Input 2
11 10 9
Sample Output 2
9