Numbers with different digits
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Print all four digit numbers from a to b with different digits.
Input
Two integers a and b (1000 ≤ a ≤ b ≤ 9999).
Output
Print in one line all numbers from a to b with different digits.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 15K
Acceptance rate 56%