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

~/algor $ cat problems/while-kesmalar-soni

Number of segments

Easy 1000 ms 64 MB 24%
Share

Two positive integers $A$ and $B$ are given ($A \gt B$). The greatest possible number of segments of length $B$ is placed on a segment of length $A$. Find the number of segments $B$ placed on segment $A$.

Counting the short segments that fit on the long one

Input

One line with two integers: $A$ and $B$.

Output

One integer — the number of placed segments.

Note

$1 \le B \lt A \le 10^{6}$

Examples

Input #1
10 3
Output #1
3
Input #2
20 5
Output #2
4

Sign in to submit a solution

Signing up is free and takes a minute.