_{This problem is a programming version of Problem 38 from projecteuler.net}

Take the number and multiply it by each of , , and :

By concatenating each product we get the to pandigital, . We will call the concatenated product of and

The same can be achieved by starting with and multiplying by , , , , and , giving the pandigital, , which is the concatenated product of and . Let's call 9 as the Multiplier

The similar process can be shown for to pandigital also. when multiplied by gives which is pandigital.

You are given and where = or , find the multipliers for that given below and print them in ascending order.

**Input Format**

Input contains two integer and .

**Constraints**

**Output Format**

Print the answer corresponding to the test case.

**Sample Input**

```
100 8
```

**Sample Output**

```
18
78
```