Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/qarzni-uzish

Paying off a debt

Easy 1000 ms 64 MB 24%
Share

A debt is $S$ soums. Every month $p$ soums of the debt are paid (in the last month the remaining debt is paid, which may be less than $p$). In how many months will the debt be fully paid off?

A debt bar split into monthly payments; the last piece is shorter

Input

One line with two positive integers: $S$ and $p$.

Output

One integer — the number of months.

Note

$1 \le S, p \le 10^{9}$
the number of months does not exceed $10^{6}$

Examples

Input #1
1000 300
Output #1
4
Input #2
500 500
Output #2
1

Sign in to submit a solution

Signing up is free and takes a minute.