Loops. Loop with parameter (for)




Task
Time limit: 1000 ms,
Memory limit: 256 Mb

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

Auto CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:

Rules for designing programs and a list of errors during automatic task verification
           

Results: