Long number
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Consecutive natural numbers from a
to b
are written sequentially without spaces, creating a large number. This number is divisible by the natural number c
without leaving a remainder. Given the values of a
and c
, determine the smallest possible value of b
.
Input
Two integers a
and c
(a
, c < 10000
, a ≤ b
).
Output
Print the smallest integer b
.
Examples
Input #1
Answer #1
Submissions 4K
Acceptance rate 22%