All Submissions


Problem Statement

Write a program that takes a positive integer (less than 109) as input, and calculates the smallest palindrome larger than or equal to that number.

Each line of the input will contain one positive integer, corresponding to which you must print out the required value, one per line.

Sample Input


125
12345
47


Sample Output


131
12421
55


Languages: Brain,C,C++,C#,Java,JavaScript,Pascal,Perl,PHP,Python,Ruby,Text

Time Limit: 1 Second(s)
Score: 100 Point(s)
Input File Limit: 50000 Bytes

Submit

Login to post clarification.

No Clarifications.

Contest

Mode Judge

Passive

Online

Overall Rankings

RankNameScore
1xyz0
2Ams0
3TIP0
4team420
5xyzz0
6asdasdasd0
7abcd0
8khankhan0
9Gabriel0
10gigel0