A non-negative integer is a palindrome if its decimal representation read from left to right equals its representation read from right to left (for example, 121, 7, 1331, 0).
Read a non-negative integer n and print the smallest palindrome greater than or equal to n.