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

~/algor $ cat problems/bolinmani-yaxlitlash

Rounding a quotient

Easy 1000 ms 64 MB 18%
Share

Positive integers $a$ and $b$ are given. Round the quotient $a / b$ to the nearest integer. If the fractional part of the quotient is exactly $0.5$, round up: $7 / 2 = 3.5$ gives $4$, and $9 / 4 = 2.25$ gives $2$.

On the number line, the point a/b and the nearest integer to it

Input

One line with two positive integers: $a$ and $b$.

Output

One integer — the rounded quotient.

Note

$1 \le a, b \le 10^{9}$

Examples

Input #1
7 2
Output #1
4
Input #2
7 4
Output #2
2

Sign in to submit a solution

Signing up is free and takes a minute.