
    Given an event ID number in the social networking platform, transform it into the next available palindromic event ID that will be used for featured social gatherings. The new palindromic ID must be larger than the original event ID and should be the smallest such number that reads the same forwards and backwards.
    

    
import sys

def next_smallest_palindrome(num):
    """
    Given an event ID number in the social networking platform, transform it into the next available palindromic event ID that will be used for featured social gatherings. The new palindromic ID must be larger than the original event ID and should be the smallest such number that reads the same forwards and backwards.
    

    """
import sys

def next_smallest_palindrome(num):
    """
    Given an event ID number in the social networking platform, transform it into the next available palindromic event ID that will be used for featured social gatherings. The new palindromic ID must be larger than the original event ID and should be the smallest such number that reads the same forwards and backwards.
    

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