The Weekly Challenge - 114,

You are given a positive integer $N.

Write a script to find out the next Palindrome Number higher than the given integer $N.

Example

Input: $N = 1234 Output: 1331

Input: $N = 999 Output: 1001