#P1070A. Find a Number

Find a Number

Description

You are given two positive integers $d$ and $s$. Find minimal positive integer $n$ which is divisible by $d$ and has sum of digits equal to $s$.

The first line contains two positive integers $d$ and $s$ ($1 \le d \le 500, 1 \le s \le 5000$) separated by space.

Print the required number or -1 if it doesn't exist.

Input

The first line contains two positive integers $d$ and $s$ ($1 \le d \le 500, 1 \le s \le 5000$) separated by space.

Output

Print the required number or -1 if it doesn't exist.

13 50<br>
61 2<br>
15 50<br>
699998<br>
1000000000000000000000000000001<br>
-1<br>