#P50. [KBC004B] Palindrome
[KBC004B] Palindrome
Source
This problem is adapted from Long Long OJ. All rights reserved.
Problem Description
Given and , for each number in the interval : if it is not a palindrome number, output the number itself; otherwise, output Palindrome!.
Input Format
A single line containing two integers and .
Output Format
There are a total of lines, each line containing an integer (or the specified string), with the output method as described in the problem statement.
Samples
8 13
Palindrome!
Palindrome!
10
Palindrome!
12
13
999999997 1000000000
999999997
999999998
Palindrome!
1000000000
Sample 1 Explanation
, , and are all palindrome numbers, so Palindrome! is output for them.
Data Range
For of the data, and .