Lucky Palindromes


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

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

There are no comments at the moment.