题目描述
Problem Description
Mr. Godzilla, who is starting his career as a professional this spring, plans to repay a scholarship of $ M $ million yen over $ N $ months.
The repayment amount for each month is determined by the following rules:
- For the $ i $-th month ( $1 \leq i \leq N-1$ ): The amount is $ M/N $ rounded down to the nearest whole number (in million yen).
- For the $ N $-th month: The remaining unpaid amount.
How many million yen will Mr. Godzilla repay in the $ N $-th month?
Input Format
The input is given from the standard input in the following format:
$ M $ $ N $
Output Format
Output the amount in million yen that Mr. Godzilla will repay in the $ N $-th month.
Sample Input and Output
Sample Input #1
7 3
Sample Output #1
3
Sample Input #2
100 20
Sample Output #2
5
Notes/Hints
Constraints
- All inputs are integers.
- $2 \leq N \leq M \leq 100$
Sample Explanation 1
For the 1st and 2nd months, he repays $ 2 $ million yen each, so in the 3rd month, he repays $ 3 $ million yen.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
7 3
样例输出
3