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

~/algor $ cat problems/kesmalar

Segments

Easy 1000 ms 64 MB 9%
Share

Pieces of length $B$ are cut from a segment of length $A$. Find the largest number of pieces that can be obtained.

Short segments are placed one after another on a long segment

Input

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

Output

One integer — the number of pieces.

Note

$1 \le A, B \le 10^{9}$

Examples

Input #1
10 3
Output #1
3
Input #2
9 3
Output #2
3

Sign in to submit a solution

Signing up is free and takes a minute.