
    Design a function for the social networking platform that generates the next memorable event code by finding the next palindromic number greater than the current event ID. The event codes must be palindromic (reading the same forwards and backwards) to ensure easy memorization and sharing among friend groups, and the function should return the smallest possible palindromic number larger than the given event ID.
    

    
import sys

def next_smallest_palindrome(num):
    """
    Design a function for the social networking platform that generates the next memorable event code by finding the next palindromic number greater than the current event ID. The event codes must be palindromic (reading the same forwards and backwards) to ensure easy memorization and sharing among friend groups, and the function should return the smallest possible palindromic number larger than the given event ID.
    

    """
import sys

def next_smallest_palindrome(num):
    """
    Design a function for the social networking platform that generates the next memorable event code by finding the next palindromic number greater than the current event ID. The event codes must be palindromic (reading the same forwards and backwards) to ensure easy memorization and sharing among friend groups, and the function should return the smallest possible palindromic number larger than the given event ID.
    

    """
    numstr = str(num)
    for i in range(num + 1, sys.maxsize):
        if str(i) == str(i)[::-1]:
            return i