Long number#116

Long number

1 second
64 megabytes
Easy

Consecutive natural numbers from to are written together in order, without spaces, to form a large number. This large number is divisible by the natural number with no remainder. Given and , find the smallest possible value of .

Input

The input contains two integers and (a, c < 10000, a \leq b).

Output

Print the smallest integer .

Examples

Example 1

Loading
Loading