e-olymp
Problems

Three digit numbers

Three digit numbers

From the given interval [a, b] print in ascending order all three digit numbers with different digits.

Input

Two integers a and b (100ab999).

Output

Print in ascending order all three digit numbers from the interval [a, b] with different digits. Print each number in a separate line.

Time limit 1 second
Memory limit 122.17 MiB
Input example #1
100 105
Output example #1
102
103
104
105
Source Китёнок 2011 г. Ковров