Palindrom2
Medium
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Given a natural number n, your task is to find the smallest palindrome number that is greater than n. A palindrome is a number that reads the same forwards and backwards.
Input
The program will read a natural number n from the input (1 ≤ n < 10^18).
Output
The program should output the smallest palindrome greater than n.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 13%