Given two four-digit numbers A and B. Output all four-digit numbers on the segment from A to B, the record of which is a palindrome.
Input: Enter two integers A and B
Output: Output the answer to the problem.
Examples
№ |
Input |
Output |
1 |
1600
2100 |
1661
1771
1881
1991
2002 |