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

~/algor $ cat problems/integer-karrali-eng-kichik-son

Smallest multiple

Medium 1000 ms 64 MB 39%
Share

Two positive integers $a$ and $b$ are given. Find the smallest number that is not less than $a$ and is divisible by $b$ without a remainder.

The nearest multiple of b on the number line

Input

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

Output

One positive integer — the number found.

Note

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

Examples

Input #1
17 5
Output #1
20
Input #2
20 4
Output #2
20

Sign in to submit a solution

Signing up is free and takes a minute.