Lucky Palindromes
List numbers in \([a,b]\) that are palindromes, contain a digit 6, and have a digit sum ending in 8.
Input
One line containing \(a\) and \(b\).
The input satisfies:
- \(1 \le a \le b \le 10^6\)
Output
Print qualifying numbers in increasing order, separated by single spaces; print -1 if none exist.
Example
Input
997465 999735
Output
-1
Comments